On Sat, May 2, 2020 at 6:08 PM Pragnesh Patel <pragnesh.pa...@sifive.com> wrote: > > Add a support for SPL which will boot from L2 LIM (0x0800_0000) and > then SPL will boot U-Boot FIT image (OpenSBI FW_DYNAMIC + u-boot.bin) > from MMC boot devices. > > SPL related code is leveraged from FSBL > (https://github.com/sifive/freedom-u540-c000-bootloader.git) > > Signed-off-by: Pragnesh Patel <pragnesh.pa...@sifive.com> > --- > arch/riscv/cpu/fu540/Makefile | 4 ++ > arch/riscv/cpu/fu540/spl.c | 23 ++++++ > .../dts/hifive-unleashed-a00-u-boot.dtsi | 1 + > arch/riscv/include/asm/arch-fu540/spl.h | 14 ++++ > board/sifive/fu540/Kconfig | 10 ++- > board/sifive/fu540/Makefile | 4 ++ > board/sifive/fu540/fu540.c | 24 +++++++ > board/sifive/fu540/spl.c | 72 +++++++++++++++++++ > include/configs/sifive-fu540.h | 18 +++++ > 9 files changed, 169 insertions(+), 1 deletion(-) > create mode 100644 arch/riscv/cpu/fu540/spl.c > create mode 100644 arch/riscv/include/asm/arch-fu540/spl.h > create mode 100644 board/sifive/fu540/spl.c >
Reviewed-by: Bin Meng <bmeng...@gmail.com> Tested-by: Bin Meng <bmeng...@gmail.com>