diff options
author | Tom Rini <trini@konsulko.com> | 2020-08-14 08:38:01 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-08-14 08:38:01 -0400 |
commit | fe5c777df26dab302cbb26d5f05655e27b714987 (patch) | |
tree | b1e7f289c00fe53b02ee5f11894e4d47a7697f83 /arch/riscv/lib/spl.c | |
parent | cdcf591d9b20534e5f5c58aa2a2b07b3b173f5a1 (diff) | |
parent | 313981c2d9437f31b2a0f3838591a5fb0e5d8ebe (diff) |
Merge https://gitlab.denx.de/u-boot/custodians/u-boot-riscv
- Fix HiFive Unleashed the broken problem by call fix_fdt() before
reserve_fdt(). Please refer to
https://www.mail-archive.com/u-boot@lists.denx.de/msg379444.html for
master u-boot broken for HiFive Unleashed.
- Add unaligned exception cmd.
- Refine sifive/fu540 spl flow.
- Add additional crash information for efi.
- Update sipeed/maix doc.
- Two minor refine.
Diffstat (limited to 'arch/riscv/lib/spl.c')
-rw-r--r-- | arch/riscv/lib/spl.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/riscv/lib/spl.c b/arch/riscv/lib/spl.c index c47dcd46cea..e24ec5a46c0 100644 --- a/arch/riscv/lib/spl.c +++ b/arch/riscv/lib/spl.c @@ -13,6 +13,11 @@ DECLARE_GLOBAL_DATA_PTR; +__weak int spl_board_init_f(void) +{ + return 0; +} + __weak void board_init_f(ulong dummy) { int ret; @@ -24,6 +29,10 @@ __weak void board_init_f(ulong dummy) arch_cpu_init_dm(); preloader_console_init(); + + ret = spl_board_init_f(); + if (ret) + panic("spl_board_init_f() failed: %d\n", ret); } void __noreturn jump_to_image_no_args(struct spl_image_info *spl_image) |