summaryrefslogtreecommitdiff
path: root/common/serial.c
diff options
context:
space:
mode:
authorstefano babic <sbabic@denx.de>2007-08-30 22:57:04 +0200
committerWolfgang Denk <wd@denx.de>2007-09-07 01:04:59 +0200
commit80172c6181c912fbb34ea3ba0c22b232b419b47f (patch)
treeee7f99ac65e1ba7aaed9ce8ad20b72c72c6f28f7 /common/serial.c
parent28bb3f72c687ac6b2eb076b01dd21a5fd657d45e (diff)
downloadu-boot-imx-80172c6181c912fbb34ea3ba0c22b232b419b47f.zip
u-boot-imx-80172c6181c912fbb34ea3ba0c22b232b419b47f.tar.gz
u-boot-imx-80172c6181c912fbb34ea3ba0c22b232b419b47f.tar.bz2
PXA270: Add support for multiple serial ports.
This patch adds support for multiple serial ports to the PXA target. FFUART, BTUART and STUART are supported. Signed-off-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'common/serial.c')
-rw-r--r--common/serial.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/common/serial.c b/common/serial.c
index 13e9f30..dee1cc0 100644
--- a/common/serial.c
+++ b/common/serial.c
@@ -32,7 +32,7 @@ DECLARE_GLOBAL_DATA_PTR;
static struct serial_device *serial_devices = NULL;
static struct serial_device *serial_current = NULL;
-#ifndef CONFIG_LWMON
+#if !defined(CONFIG_LWMON) && !defined(CONFIG_PXA27X)
struct serial_device *default_serial_console (void)
{
#if defined(CONFIG_8xx_CONS_SMC1) || defined(CONFIG_8xx_CONS_SMC2)
@@ -65,7 +65,7 @@ struct serial_device *default_serial_console (void)
}
#endif
-static int serial_register (struct serial_device *dev)
+int serial_register (struct serial_device *dev)
{
dev->init += gd->reloc_off;
dev->setbrg += gd->reloc_off;
@@ -110,6 +110,15 @@ void serial_initialize (void)
serial_register(&eserial4_device);
#endif
#endif /* CFG_NS16550_SERIAL */
+#if defined (CONFIG_FFUART)
+ serial_register(&serial_ffuart_device);
+#endif
+#if defined (CONFIG_BTUART)
+ serial_register(&serial_btuart_device);
+#endif
+#if defined (CONFIG_STUART)
+ serial_register(&serial_stuart_device);
+#endif
serial_assign (default_serial_console ()->name);
}