OSDN Git Service

tty/serial: pl011: add DT based earlycon support
authorRob Herring <robh@kernel.org>
Thu, 27 Mar 2014 13:08:03 +0000 (08:08 -0500)
committerRob Herring <robh@kernel.org>
Tue, 20 May 2014 20:19:26 +0000 (15:19 -0500)
Enable DT based earlycon initialization for the pl011 uart.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jslaby@suse.cz>
Acked-by: Grant Likely <grant.likely@linaro.org>
drivers/tty/serial/amba-pl011.c

index ee3d803..908a6e3 100644 (file)
@@ -2072,6 +2072,7 @@ static int __init pl011_early_console_setup(struct earlycon_device *device,
        return 0;
 }
 EARLYCON_DECLARE(pl011, pl011_early_console_setup);
+OF_EARLYCON_DECLARE(pl011, "arm,pl011", pl011_early_console_setup);
 
 #else
 #define AMBA_CONSOLE   NULL