diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2020-03-17 07:59:47 -0700 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-03-18 10:02:08 +0530 |
commit | 1071f0566359e1b8612b31a6953e6328cb5ff9be (patch) | |
tree | f79c1053dbe571ca0496d16a96249279fe315347 /platform | |
parent | 6f9bb83c1ff1156bf01d04ab8105765bd3fc20f7 (diff) |
platform: sifive/fu540: Remove "stdout-path" fix-up
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>
Diffstat (limited to 'platform')
-rw-r--r-- | platform/sifive/fu540/platform.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/platform/sifive/fu540/platform.c b/platform/sifive/fu540/platform.c index c89ec47..b655d45 100644 --- a/platform/sifive/fu540/platform.c +++ b/platform/sifive/fu540/platform.c @@ -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); |