summaryrefslogtreecommitdiff
path: root/board/sifive
diff options
context:
space:
mode:
authorBin Meng <bin.meng@windriver.com>2020-08-02 23:09:02 -0700
committerAndes <uboot@andestech.com>2020-08-14 14:38:53 +0800
commitc4295ec849b387d039719c024afb465a4ca5cedb (patch)
treeb5e9a008c3b06825d012b9f7057a9582a2a91c75 /board/sifive
parent71672b784cb6b3175d3849d28eebc2f3ed3c9d3c (diff)
downloadu-boot-c4295ec849b387d039719c024afb465a4ca5cedb.tar.gz
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 <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>
Diffstat (limited to 'board/sifive')
-rw-r--r--board/sifive/fu540/spl.c19
1 files changed, 1 insertions, 18 deletions
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);
-}