From 39f614779f12065a84e5cc49be3db69079114f31 Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Fri, 14 Sep 2012 22:38:46 +0200 Subject: serial: arm: Implement CONFIG_SERIAL_MULTI into pl01x serial driver Implement support for CONFIG_SERIAL_MULTI into pl01x 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 pl01x driver. Also, add a weak implementation of default_serial_console() returning this driver. Signed-off-by: Marek Vasut Cc: Marek Vasut Cc: Tom Rini Cc: Stefano Babic Cc: Mathieu J. Poirier Cc: Linus Walleij Cc: John Rigby Cc: Rabin Vincent --- common/serial.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common/serial.c') diff --git a/common/serial.c b/common/serial.c index 0c0712bc411..96e69d52b99 100644 --- a/common/serial.c +++ b/common/serial.c @@ -89,6 +89,7 @@ serial_initfunc(lpc2292_serial_initialize); serial_initfunc(max3100_serial_initialize); serial_initfunc(mxc_serial_initialize); serial_initfunc(netarm_serial_initialize); +serial_initfunc(pl01x_serial_initialize); void serial_register(struct serial_device *dev) { @@ -156,6 +157,7 @@ void serial_initialize(void) max3100_serial_initialize(); mxc_serial_initialize(); netarm_serial_initialize(); + pl01x_serial_initialize(); serial_assign(default_serial_console()->name); } -- cgit v1.2.3