From 1071f0566359e1b8612b31a6953e6328cb5ff9be Mon Sep 17 00:00:00 2001
From: Bin Meng <bmeng.cn@gmail.com>
Date: Tue, 17 Mar 2020 07:59:47 -0700
Subject: 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>
---
 platform/sifive/fu540/platform.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

(limited to 'platform')

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);
-- 
cgit v1.2.3