arm64: dts: specify console via command line
authorChunyan Zhang <chunyan.zhang@unisoc.com>
Wed, 11 Mar 2020 11:21:20 +0000 (19:21 +0800)
committerArnd Bergmann <arnd@arndb.de>
Wed, 25 Mar 2020 20:40:54 +0000 (21:40 +0100)
The SPRD serial driver need to know which serial port would be used as
console in an early period during initialization, otherwise console
init would fail since we added this feature[1].

So this patch add console to command line via devicetree.

[1] https://lore.kernel.org/lkml/20190826072929.7696-4-zhang.lyra@gmail.com/

Link: https://lore.kernel.org/r/20200311112120.30890-1-zhang.lyra@gmail.com
Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm64/boot/dts/sprd/sp9863a-1h10.dts

index 5c32c15..dc1a620 100644 (file)
@@ -26,7 +26,7 @@
 
        chosen {
                stdout-path = "serial1:115200n8";
-               bootargs = "earlycon";
+               bootargs = "earlycon console=ttyS1";
        };
 };