summaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorKefeng Wang <wangkefeng.wang@huawei.com>2016-10-31 10:04:19 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-11-10 15:10:37 +0100
commitfcb321590c9df4564003825258af67cfcb5aac55 (patch)
tree7ea6f0333e2590e9d3a52888b0e95166458bee89 /drivers/tty
parent19467fa179d0d505b3c0ae5e0bdab3f51bf65a50 (diff)
downloadop-kernel-dev-fcb321590c9df4564003825258af67cfcb5aac55.zip
op-kernel-dev-fcb321590c9df4564003825258af67cfcb5aac55.tar.gz
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>
Diffstat (limited to 'drivers/tty')
-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 c00ab22..d4171d7 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,
return 0;
}
OF_EARLYCON_DECLARE(pl011, "arm,pl011", pl011_early_console_setup);
+OF_EARLYCON_DECLARE(pl011, "arm,sbsa-uart", pl011_early_console_setup);
#else
#define AMBA_CONSOLE NULL
OpenPOWER on IntegriCloud