From: Bin Meng Date: Mon, 3 Aug 2020 06:09:02 +0000 (-0700) Subject: riscv: sifive/fu540: spl: Drop our own version of board_init_f() X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-favicon.png?a=commitdiff_plain;h=c4295ec849b387d039719c024afb465a4ca5cedb;p=u-boot.git riscv: sifive/fu540: spl: Drop our own version of board_init_f() Use the generic board_init_f() provided by the RISC-V library codes. Signed-off-by: Bin Meng Reviewed-by: Rick Chen Reviewed-by: Pragnesh Patel Tested-by: Pragnesh Patel --- diff --git a/board/sifive/fu540/spl.c b/board/sifive/fu540/spl.c index 55325cf99d..31d315d5fd 100644 --- a/board/sifive/fu540/spl.c +++ b/board/sifive/fu540/spl.c @@ -17,7 +17,7 @@ #define GEM_PHY_RESET SIFIVE_GENERIC_GPIO_NR(0, 12) -int init_clk_and_ddr(void) +int spl_board_init_f(void) { int ret; @@ -55,20 +55,3 @@ int init_clk_and_ddr(void) return 0; } - -void board_init_f(ulong dummy) -{ - int ret; - - ret = spl_early_init(); - if (ret) - panic("spl_early_init() failed: %d\n", ret); - - arch_cpu_init_dm(); - - preloader_console_init(); - - ret = init_clk_and_ddr(); - if (ret) - panic("init_clk_and_ddr() failed: %d\n", ret); -}