diff options
author | Harald Welte | 2007-12-19 14:24:40 +0100 |
---|---|---|
committer | Wolfgang Denk | 2008-02-04 23:52:49 +0100 |
commit | a7c185ed3d9f8ebd85cfc286e1ffee72e4803163 (patch) | |
tree | 61205b4a6ec89087b4aabd962891e34712be91a4 /common | |
parent | a25f72f1f73a11de68251fb88c89991e202e68fa (diff) |
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.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/common/serial.c b/common/serial.c index 56010807be5..bfda7ca5513 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); } |