summaryrefslogtreecommitdiff
path: root/common/serial.c
diff options
context:
space:
mode:
authorMinkyu Kang <mk7.kang@samsung.com>2009-10-01 17:20:28 +0900
committerMinkyu Kang <mk7.kang@samsung.com>2009-10-09 10:51:47 +0900
commit7074635021a8a2d8dbf1d0955844819f0ec7c192 (patch)
treec8e568698e40b066670fb3f0589d47cd10681a5e /common/serial.c
parent4125a8d52e18637b58db488f278a30db479b490f (diff)
downloadu-boot-imx-7074635021a8a2d8dbf1d0955844819f0ec7c192.zip
u-boot-imx-7074635021a8a2d8dbf1d0955844819f0ec7c192.tar.gz
u-boot-imx-7074635021a8a2d8dbf1d0955844819f0ec7c192.tar.bz2
s5pc1xx: support serial driver
This patch includes the serial driver for s5pc1xx. s5pc1xx uart driver needs own register setting and clock configuration. So, need to special driver. Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'common/serial.c')
-rw-r--r--common/serial.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/common/serial.c b/common/serial.c
index 41a24c2..e5ce9fd 100644
--- a/common/serial.c
+++ b/common/serial.c
@@ -69,6 +69,18 @@ struct serial_device *__default_serial_console (void)
#else
#error "CONFIG_SERIAL? missing."
#endif
+#elif defined(CONFIG_S5PC1XX)
+#if defined(CONFIG_SERIAL0)
+ return &s5pc1xx_serial0_device;
+#elif defined(CONFIG_SERIAL1)
+ return &s5pc1xx_serial1_device;
+#elif defined(CONFIG_SERIAL2)
+ return &s5pc1xx_serial2_device;
+#elif defined(CONFIG_SERIAL3)
+ return &s5pc1xx_serial3_device;
+#else
+#error "CONFIG_SERIAL? missing."
+#endif
#elif defined(CONFIG_OMAP3_ZOOM2)
return ZOOM2_DEFAULT_SERIAL_DEVICE;
#else
@@ -139,6 +151,12 @@ void serial_initialize (void)
serial_register(&s3c24xx_serial1_device);
serial_register(&s3c24xx_serial2_device);
#endif
+#if defined(CONFIG_S5PC1XX)
+ serial_register(&s5pc1xx_serial0_device);
+ serial_register(&s5pc1xx_serial1_device);
+ serial_register(&s5pc1xx_serial2_device);
+ serial_register(&s5pc1xx_serial3_device);
+#endif
serial_assign (default_serial_console ()->name);
}