summaryrefslogtreecommitdiff
path: root/common/serial.c
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2011-09-25 21:03:08 +0000
committerWolfgang Denk <wd@denx.de>2011-10-09 23:24:47 +0200
commit49a23e4a414ef9cfb92b1de193d7fa700fb55bf1 (patch)
tree9f47b2475c5ac0578fe5f651fbd1ebeb694197cb /common/serial.c
parent4b0a03d3756c0bb8f25a9b9df3530e4129a6a70c (diff)
downloadu-boot-imx-49a23e4a414ef9cfb92b1de193d7fa700fb55bf1.zip
u-boot-imx-49a23e4a414ef9cfb92b1de193d7fa700fb55bf1.tar.gz
u-boot-imx-49a23e4a414ef9cfb92b1de193d7fa700fb55bf1.tar.bz2
serial: uartlite: Support for SERIAL_MULTI
Add support for SERIAL MULTI for uartlite. Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'common/serial.c')
-rw-r--r--common/serial.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/common/serial.c b/common/serial.c
index 7bfc861..5b83d6a 100644
--- a/common/serial.c
+++ b/common/serial.c
@@ -108,6 +108,20 @@ void serial_initialize (void)
#if defined(CONFIG_SYS_BFIN_UART)
serial_register_bfin_uart();
#endif
+#if defined(CONFIG_XILINX_UARTLITE)
+# ifdef XILINX_UARTLITE_BASEADDR
+ serial_register(&uartlite_serial0_device);
+# endif /* XILINX_UARTLITE_BASEADDR */
+# ifdef XILINX_UARTLITE_BASEADDR1
+ serial_register(&uartlite_serial1_device);
+# endif /* XILINX_UARTLITE_BASEADDR1 */
+# ifdef XILINX_UARTLITE_BASEADDR2
+ serial_register(&uartlite_serial2_device);
+# endif /* XILINX_UARTLITE_BASEADDR2 */
+# ifdef XILINX_UARTLITE_BASEADDR3
+ serial_register(&uartlite_serial3_device);
+# endif /* XILINX_UARTLITE_BASEADDR3 */
+#endif /* CONFIG_XILINX_UARTLITE */
serial_assign (default_serial_console ()->name);
}