aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKefeng Wang <wangkefeng.wang@huawei.com>2016-10-30 22:04:19 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-11-10 09:10:37 -0500
commitfcb321590c9df4564003825258af67cfcb5aac55 (patch)
tree7ea6f0333e2590e9d3a52888b0e95166458bee89
parent19467fa179d0d505b3c0ae5e0bdab3f51bf65a50 (diff)
tty: amba-pl011: Add earlycon support for SBSA UART
Declare an OF early console for SBSA UART so that the early console device can be specified via the "stdout-path" property in device-tree. Cc: Russell King <linux@armlinux.org.uk> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/tty/serial/amba-pl011.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c
index c00ab22afe9e..d4171d71a258 100644
--- a/drivers/tty/serial/amba-pl011.c
+++ b/drivers/tty/serial/amba-pl011.c
@@ -2412,6 +2412,7 @@ static int __init pl011_early_console_setup(struct earlycon_device *device,
2412 return 0; 2412 return 0;
2413} 2413}
2414OF_EARLYCON_DECLARE(pl011, "arm,pl011", pl011_early_console_setup); 2414OF_EARLYCON_DECLARE(pl011, "arm,pl011", pl011_early_console_setup);
2415OF_EARLYCON_DECLARE(pl011, "arm,sbsa-uart", pl011_early_console_setup);
2415 2416
2416#else 2417#else
2417#define AMBA_CONSOLE NULL 2418#define AMBA_CONSOLE NULL