summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2012-09-13 01:16:50 +0200
committerTom Rini <trini@ti.com>2012-10-15 11:53:51 -0700
commit7b953c51654912b94a71854b9d2e6b48ee3b7908 (patch)
tree742c4456a1977ccdd5b4a0e28fdba83467bd47f3 /common
parent41651cab97143e3385057279a2633e2812f328ba (diff)
downloadu-boot-imx-7b953c51654912b94a71854b9d2e6b48ee3b7908.zip
u-boot-imx-7b953c51654912b94a71854b9d2e6b48ee3b7908.tar.gz
u-boot-imx-7b953c51654912b94a71854b9d2e6b48ee3b7908.tar.bz2
serial: mips: Implement CONFIG_SERIAL_MULTI into au1x00 serial driver
Implement support for CONFIG_SERIAL_MULTI into au1x00 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 au1x00 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> Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
Diffstat (limited to 'common')
-rw-r--r--common/serial.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/serial.c b/common/serial.c
index dca2dc9..d8094bc 100644
--- a/common/serial.c
+++ b/common/serial.c
@@ -50,6 +50,7 @@ serial_initfunc(bfin_serial_initialize);
serial_initfunc(bfin_jtag_initialize);
serial_initfunc(mpc512x_serial_initialize);
serial_initfunc(uartlite_serial_initialize);
+serial_initfunc(au1x00_serial_initialize);
void serial_register(struct serial_device *dev)
{
@@ -78,6 +79,8 @@ void serial_initialize(void)
bfin_jtag_initialize();
uartlite_serial_initialize();
zynq_serial_initalize();
+ au1x00_serial_initialize();
+
serial_assign(default_serial_console()->name);
}