]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
tty: amba-pl011: Add earlycon support for SBSA UART
authorKefeng Wang <wangkefeng.wang@huawei.com>
Mon, 31 Oct 2016 02:04:19 +0000 (10:04 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2016 14:10:37 +0000 (15:10 +0100)
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>
drivers/tty/serial/amba-pl011.c

index c00ab22afe9e1a73ed6e863995586b6df5e957a6..d4171d71a258f2696ab2ab2109376ee5a516bfba 100644 (file)
@@ -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