]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
xtensa: xtfpga: fix earlycon endianness
authorMax Filippov <jcmvbkbc@gmail.com>
Tue, 22 Sep 2015 11:19:55 +0000 (14:19 +0300)
committerChris Zankel <chris@zankel.net>
Fri, 11 Mar 2016 08:53:32 +0000 (08:53 +0000)
Serial port is attached to XTFPGA boards as native endian device, now
that earlycon parameter parser understands mmio32native put it into
earlycon kernel parameter. This makes early console functional on both
little- and big-endian CPUs with identical kernel command lines.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/boot/dts/kc705.dts
arch/xtensa/boot/dts/xtfpga.dtsi

index c4d17a34ab86ca3d61ca85f398cf0fd80b753f41..b1f4ee8c9a22371ba9abedfcc7d21fb279b585f0 100644 (file)
@@ -5,7 +5,7 @@
 / {
        compatible = "cdns,xtensa-kc705";
        chosen {
-               bootargs = "earlycon=uart8250,mmio32,0xfd050020,115200n8 console=ttyS0,115200n8 ip=dhcp root=/dev/nfs rw debug memmap=0x38000000";
+               bootargs = "earlycon=uart8250,mmio32native,0xfd050020,115200n8 console=ttyS0,115200n8 ip=dhcp root=/dev/nfs rw debug memmap=0x38000000";
        };
        memory@0 {
                device_type = "memory";
index f2120be743313d491cf3695a389aa10871ebf265..cd45f9c2c4484225960dc63267230bb3c7f5a2eb 100644 (file)
@@ -5,7 +5,7 @@
        interrupt-parent = <&pic>;
 
        chosen {
-               bootargs = "earlycon=uart8250,mmio32,0xfd050020,115200n8 console=ttyS0,115200n8 ip=dhcp root=/dev/nfs rw debug";
+               bootargs = "earlycon=uart8250,mmio32native,0xfd050020,115200n8 console=ttyS0,115200n8 ip=dhcp root=/dev/nfs rw debug";
        };
 
        memory@0 {