mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-11 05:42:58 +00:00
048899ba8c
Support EHCI host driver used on Panasonic UniPhier platform. Since Device Tree is not supported on UniPhier yet, the base address of USB cores are passed from board files (platdevice.c). TODO for me: Move the base address to device trees. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by: Marek Vasut <marex@denx.de>
26 lines
613 B
C
26 lines
613 B
C
/*
|
|
* Copyright (C) 2014 Panasonic Corporation
|
|
* Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef ARCH_PLATDEVICE_H
|
|
#define ARCH_PLATDEVICE_H
|
|
|
|
#include <dm/platdata.h>
|
|
#include <dm/platform_data/serial-uniphier.h>
|
|
|
|
#define SERIAL_DEVICE(n, ba, clk) \
|
|
static struct uniphier_serial_platform_data serial_device##n = { \
|
|
.base = ba, \
|
|
.uartclk = clk \
|
|
}; \
|
|
U_BOOT_DEVICE(serial##n) = { \
|
|
.name = DRIVER_NAME, \
|
|
.platdata = &serial_device##n \
|
|
};
|
|
|
|
#include <asm/arch/ehci-uniphier.h>
|
|
|
|
#endif /* ARCH_PLATDEVICE_H */
|