summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2012-09-13 16:53:15 +0200
committerTom Rini <trini@ti.com>2012-10-15 11:53:55 -0700
commit4bee0b36de7b0cad67fccfbacde619b045ed8c14 (patch)
treedd9adab3d5ff1aa8575764fa62eb7e91d41e53af /common
parent69ea8070242b977fded9c7967ce3c8c1eeede25f (diff)
downloadu-boot-imx-4bee0b36de7b0cad67fccfbacde619b045ed8c14.zip
u-boot-imx-4bee0b36de7b0cad67fccfbacde619b045ed8c14.tar.gz
u-boot-imx-4bee0b36de7b0cad67fccfbacde619b045ed8c14.tar.bz2
serial: arm: Implement CONFIG_SERIAL_MULTI into s3c4510b serial driver
Implement support for CONFIG_SERIAL_MULTI into s3c4510b serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the s3c4510b driver. Also, add a weak implementation of default_serial_console() returning this driver. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Marek Vasut <marek.vasut@gmail.com> Cc: Tom Rini <trini@ti.com>
Diffstat (limited to 'common')
-rw-r--r--common/serial.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/serial.c b/common/serial.c
index 89f58c4..ebf6d6b 100644
--- a/common/serial.c
+++ b/common/serial.c
@@ -77,6 +77,7 @@ serial_initfunc(lpc32xx_serial_initialize);
serial_initfunc(mcf_serial_initialize);
serial_initfunc(ns9750_serial_initialize);
serial_initfunc(oc_serial_initialize);
+serial_initfunc(s3c4510b_serial_initialize);
void serial_register(struct serial_device *dev)
{
@@ -132,6 +133,7 @@ void serial_initialize(void)
mcf_serial_initialize();
ns9750_serial_initialize();
oc_serial_initialize();
+ s3c4510b_serial_initialize();
serial_assign(default_serial_console()->name);
}