summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2012-09-14 00:55:24 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-10-04 16:46:18 +0200
commit194846f398ef38d5e24c239d264a3f637c685e53 (patch)
tree3351e5aca73e8d649f7decbe9c09bd87d7e9d173 /common
parent76abfa57817ada6d4119056097cc32610343fd90 (diff)
downloadu-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.c8
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);
}