platform: sifive/fu540: Remove "stdout-path" fix-up
authorBin Meng <bmeng.cn@gmail.com>
Tue, 17 Mar 2020 14:59:47 +0000 (07:59 -0700)
committerAnup Patel <anup@brainfault.org>
Wed, 18 Mar 2020 04:32:08 +0000 (10:02 +0530)
As of today the upstream U-Boot & Linux kernel ships a device tree
that already has "stdout-path" properly set in the "/chosen" node.
This is the same with the QEMU 'sifive_u' machine. Hence the codes
to fix up the "stdout-path" in OpenSBI is not necessary.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
platform/sifive/fu540/platform.c

index c89ec47..b655d45 100644 (file)
@@ -59,7 +59,7 @@
 static void fu540_modify_dt(void *fdt)
 {
        u32 i, size;
-       int chosen_offset, err;
+       int err;
        int cpu_offset;
        char cpu_node[32] = "";
        const char *mmu_type;
@@ -84,10 +84,6 @@ static void fu540_modify_dt(void *fdt)
                memset(cpu_node, 0, sizeof(cpu_node));
        }
 
-       chosen_offset = fdt_path_offset(fdt, "/chosen");
-       fdt_setprop_string(fdt, chosen_offset, "stdout-path",
-                          "/soc/serial@10010000:115200");
-
        fdt_plic_fixup(fdt, "riscv,plic0");
 
        fdt_reserved_memory_fixup(fdt);