diff options
author | Michal Simek <monstr@monstr.eu> | 2012-09-14 00:55:24 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-10-04 16:46:18 +0200 |
commit | 194846f398ef38d5e24c239d264a3f637c685e53 (patch) | |
tree | 3351e5aca73e8d649f7decbe9c09bd87d7e9d173 /common | |
parent | 76abfa57817ada6d4119056097cc32610343fd90 (diff) | |
download | u-boot-imx-194846f398ef38d5e24c239d264a3f637c685e53.zip u-boot-imx-194846f398ef38d5e24c239d264a3f637c685e53.tar.gz u-boot-imx-194846f398ef38d5e24c239d264a3f637c685e53.tar.bz2 |
serial: Add Zynq serial driver
The driver is used on Xilinx Zynq platform.
Signed-off-by: Michal Simek <monstr@monstr.eu>
CC: Joe Hershberger <joe.hershberger@gmail.com>
CC: Marek Vasut <marex@denx.de>
Acked-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/serial.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/serial.c b/common/serial.c index 75cc1bb..4f2bc7f 100644 --- a/common/serial.c +++ b/common/serial.c @@ -122,6 +122,14 @@ void serial_initialize(void) serial_register(&uartlite_serial3_device); # endif /* XILINX_UARTLITE_BASEADDR3 */ #endif /* CONFIG_XILINX_UARTLITE */ +#if defined(CONFIG_ZYNQ_SERIAL) +# ifdef CONFIG_ZYNQ_SERIAL_BASEADDR0 + serial_register(&uart_zynq_serial0_device); +# endif +# ifdef CONFIG_ZYNQ_SERIAL_BASEADDR1 + serial_register(&uart_zynq_serial1_device); +# endif +#endif serial_assign(default_serial_console()->name); } |