]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: sifive/fu540: spl: Drop our own version of board_init_f()
authorBin Meng <bin.meng@windriver.com>
Mon, 3 Aug 2020 06:09:02 +0000 (23:09 -0700)
committerAndes <uboot@andestech.com>
Fri, 14 Aug 2020 06:38:53 +0000 (14:38 +0800)
Use the generic board_init_f() provided by the RISC-V library codes.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Rick Chen <rick@andestech.com>
Reviewed-by: Pragnesh Patel <pragnesh.patel@sifive.com>
Tested-by: Pragnesh Patel <pragnesh.patel@sifive.com>
board/sifive/fu540/spl.c

index 55325cf99dca8723584e5e60f246851909858c6b..31d315d5fdd247b3e09f3185c0af1326a12a9712 100644 (file)
@@ -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);
-}