diff mbox series

[4/5] board: sifive: Remove duplicated board_fdt_blob_setup

Message ID 20250227144734.61458-5-ziyao@disroot.org
State Superseded
Delegated to: Andes
Headers show
Series Simplifiy retrieving FDT from SBI in S-Mode | expand

Commit Message

Yao Zi Feb. 27, 2025, 2:47 p.m. UTC
The default version should work for both SiFive Unmatched and Unleashed.

Signed-off-by: Yao Zi <ziyao@disroot.org>
---
 board/sifive/unleashed/unleashed.c | 11 -----------
 board/sifive/unmatched/unmatched.c | 10 ----------
 2 files changed, 21 deletions(-)

Comments

Leo Liang March 6, 2025, 4:09 a.m. UTC | #1
On Thu, Feb 27, 2025 at 02:47:32PM +0000, Yao Zi wrote:
> The default version should work for both SiFive Unmatched and Unleashed.
> 
> Signed-off-by: Yao Zi <ziyao@disroot.org>
> ---
>  board/sifive/unleashed/unleashed.c | 11 -----------
>  board/sifive/unmatched/unmatched.c | 10 ----------
>  2 files changed, 21 deletions(-)

Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
diff mbox series

Patch

diff --git a/board/sifive/unleashed/unleashed.c b/board/sifive/unleashed/unleashed.c
index c1c374610c3..f5da289b836 100644
--- a/board/sifive/unleashed/unleashed.c
+++ b/board/sifive/unleashed/unleashed.c
@@ -114,17 +114,6 @@  int misc_init_r(void)
 
 #endif
 
-int board_fdt_blob_setup(void **fdtp)
-{
-	if (gd->arch.firmware_fdt_addr) {
-		*fdtp = (ulong *)(uintptr_t)gd->arch.firmware_fdt_addr;
-
-		return 0;
-	}
-
-	return -EEXIST;
-}
-
 int board_init(void)
 {
 	/* enable all cache ways */
diff --git a/board/sifive/unmatched/unmatched.c b/board/sifive/unmatched/unmatched.c
index 23e03e145ee..a57ce1f10fe 100644
--- a/board/sifive/unmatched/unmatched.c
+++ b/board/sifive/unmatched/unmatched.c
@@ -10,16 +10,6 @@ 
 #include <dm.h>
 #include <asm/sections.h>
 
-int board_fdt_blob_setup(void **fdtp)
-{
-	if (gd->arch.firmware_fdt_addr) {
-		*fdtp = (ulong *)(uintptr_t)gd->arch.firmware_fdt_addr;
-		return 0;
-	}
-
-	return -EEXIST;
-}
-
 int board_init(void)
 {
 	/* enable all cache ways */