[PATCH v7 17/22] riscv: sifive: fu540: add SPL configuration

Bin Meng bmeng.cn at gmail.com
Sat May 2 14:55:35 CEST 2020


On Sat, May 2, 2020 at 6:08 PM Pragnesh Patel <pragnesh.patel at 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.patel at 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.cn at gmail.com>
Tested-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list