From: Jiaxun Yang Date: Tue, 18 Jun 2024 13:56:01 +0000 (+0100) Subject: xtensa: Move dram_init to xtfpga board file X-Git-Tag: v2025.01-rc5-pxa1908~428^2~11 X-Git-Url: http://git.dujemihanovic.xyz/%22http:/www.sics.se/static/%7B%7B%20%24.Site.BaseURL%20%7D%7Dposts/index.xml?a=commitdiff_plain;h=20fa79cfc42ae4389108cac7259ad0fe3f320e9f;p=u-boot.git xtensa: Move dram_init to xtfpga board file This is a board level stuff. Tested-by: Max Filippov Signed-off-by: Jiaxun Yang --- diff --git a/arch/xtensa/cpu/cpu.c b/arch/xtensa/cpu/cpu.c index abcd8f7984..d226681222 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 5110fed311..6b92fe31c0 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();