[PATCH v2 01/10] xtensa: Move dram_init to xtfpga board file

Jiaxun Yang jiaxun.yang at flygoat.com
Wed May 22 19:07:57 CEST 2024


This is a board level stuff.

Signed-off-by: Jiaxun Yang <jiaxun.yang at flygoat.com>
---
 arch/xtensa/cpu/cpu.c         | 5 -----
 board/cadence/xtfpga/xtfpga.c | 5 +++++
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/xtensa/cpu/cpu.c b/arch/xtensa/cpu/cpu.c
index abcd8f7984fa..d2266812229c 100644
--- a/arch/xtensa/cpu/cpu.c
+++ b/arch/xtensa/cpu/cpu.c
@@ -48,8 +48,3 @@ int arch_cpu_init(void)
 	gd->ram_size = CFG_SYS_SDRAM_SIZE;
 	return 0;
 }
-
-int dram_init(void)
-{
-	return 0;
-}
diff --git a/board/cadence/xtfpga/xtfpga.c b/board/cadence/xtfpga/xtfpga.c
index 5110fed31194..6b92fe31c0e0 100644
--- a/board/cadence/xtfpga/xtfpga.c
+++ b/board/cadence/xtfpga/xtfpga.c
@@ -66,6 +66,11 @@ unsigned long get_board_sys_clk(void)
 #endif
 }
 
+int dram_init(void)
+{
+	return 0;
+}
+
 int board_postclk_init(void)
 {
 	gd->cpu_clk = get_board_sys_clk();

-- 
2.43.0



More information about the U-Boot mailing list