riscv: sifive: fu540: add SPL configuration
authorPragnesh Patel <pragnesh.patel@sifive.com>
Fri, 29 May 2020 06:03:35 +0000 (11:33 +0530)
committerAndes <uboot@andestech.com>
Thu, 4 Jun 2020 01:44:09 +0000 (09:44 +0800)
commit01cdef22ee455a4e67775b91e7f4c2a38c896159
treeb9fd0d28c43f59bcb44d7ac6a06961b595b8b4b4
parent7c45fc9870ad7cb3f4516e39454c3e75ab0c4cfb
riscv: sifive: fu540: add SPL configuration

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.patel@sifive.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Tested-by: Jagan Teki <jagan@amarulasolutions.com>
arch/riscv/cpu/fu540/Makefile
arch/riscv/cpu/fu540/spl.c [new file with mode: 0644]
arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
arch/riscv/include/asm/arch-fu540/spl.h [new file with mode: 0644]
board/sifive/fu540/Kconfig
board/sifive/fu540/Makefile
board/sifive/fu540/fu540.c
board/sifive/fu540/spl.c [new file with mode: 0644]
include/configs/sifive-fu540.h