summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorHarald Welte <laforge@openmoko.org>2007-12-19 14:24:40 +0100
committerWolfgang Denk <wd@denx.de>2008-02-04 23:52:49 +0100
commita7c185ed3d9f8ebd85cfc286e1ffee72e4803163 (patch)
tree61205b4a6ec89087b4aabd962891e34712be91a4 /common
parenta25f72f1f73a11de68251fb88c89991e202e68fa (diff)
downloadu-boot-imx-a7c185ed3d9f8ebd85cfc286e1ffee72e4803163.zip
u-boot-imx-a7c185ed3d9f8ebd85cfc286e1ffee72e4803163.tar.gz
u-boot-imx-a7c185ed3d9f8ebd85cfc286e1ffee72e4803163.tar.bz2
ARM: s3c24xx: Multiple serial port support
This patch adds support for CONFIG_SERIAL_MULTI on s3c24x0 CPU's Signed-off-by: Harald Welte <laforge@openmoko.org>
Diffstat (limited to 'common')
-rw-r--r--common/serial.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/common/serial.c b/common/serial.c
index 5601080..bfda7ca 100644
--- a/common/serial.c
+++ b/common/serial.c
@@ -60,6 +60,16 @@ struct serial_device *__default_serial_console (void)
#else
return &serial0_device;
#endif
+#elif defined(CONFIG_S3C2410)
+#if defined(CONFIG_SERIAL1)
+ return &s3c24xx_serial0_device;
+#elif defined(CONFIG_SERIAL2)
+ return &s3c24xx_serial1_device;
+#elif defined(CONFIG_SERIAL3)
+ return &s3c24xx_serial2_device;
+#else
+#error "CONFIG_SERIAL? missing."
+#endif
#else
#error No default console
#endif
@@ -123,6 +133,11 @@ void serial_initialize (void)
#if defined (CONFIG_STUART)
serial_register(&serial_stuart_device);
#endif
+#if defined(CONFIG_S3C2410)
+ serial_register(&s3c24xx_serial0_device);
+ serial_register(&s3c24xx_serial1_device);
+ serial_register(&s3c24xx_serial2_device);
+#endif
serial_assign (default_serial_console ()->name);
}