mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
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>
This commit is contained in:
parent
71672b784c
commit
c4295ec849
1 changed files with 1 additions and 18 deletions
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
#define GEM_PHY_RESET SIFIVE_GENERIC_GPIO_NR(0, 12)
|
#define GEM_PHY_RESET SIFIVE_GENERIC_GPIO_NR(0, 12)
|
||||||
|
|
||||||
int init_clk_and_ddr(void)
|
int spl_board_init_f(void)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
@ -55,20 +55,3 @@ int init_clk_and_ddr(void)
|
||||||
|
|
||||||
return 0;
|
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);
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue