Masahiro Yamada | d064cbf | 2014-10-23 22:26:10 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2014 Panasonic Corporation |
| 3 | * Author: Masahiro Yamada <yamada.m@jp.panasonic.com> |
| 4 | * |
| 5 | * SPDX-License-Identifier: GPL-2.0+ |
| 6 | */ |
| 7 | |
| 8 | #ifndef ARCH_PLATDEVICE_H |
| 9 | #define ARCH_PLATDEVICE_H |
| 10 | |
| 11 | #include <dm/platdata.h> |
| 12 | #include <dm/platform_data/serial-uniphier.h> |
| 13 | |
| 14 | #define SERIAL_DEVICE(n, ba, clk) \ |
| 15 | static struct uniphier_serial_platform_data serial_device##n = { \ |
| 16 | .base = ba, \ |
| 17 | .uartclk = clk \ |
| 18 | }; \ |
| 19 | U_BOOT_DEVICE(serial##n) = { \ |
| 20 | .name = DRIVER_NAME, \ |
| 21 | .platdata = &serial_device##n \ |
| 22 | }; |
| 23 | |
Masahiro Yamada | 048899b | 2014-11-07 18:48:33 +0900 | [diff] [blame] | 24 | #include <asm/arch/ehci-uniphier.h> |
| 25 | |
Masahiro Yamada | d064cbf | 2014-10-23 22:26:10 +0900 | [diff] [blame] | 26 | #endif /* ARCH_PLATDEVICE_H */ |