On Mon, Jul 22, 2019 at 2:00 AM Lukas Auer <lukas.a...@aisec.fraunhofer.de> wrote: > > U-Boot SPL on the generic RISC-V CPU supports two boot flows, directly > jumping to the image and via OpenSBI firmware. In the first case, both > U-Boot SPL and proper must be compiled to run in the same privilege > mode. Using OpenSBI firmware, U-Boot SPL must be compiled for machine > mode and U-Boot proper for supervisor mode. > > To be able to use SPL, boards have to provide a supported SPL boot > device. > > Signed-off-by: Lukas Auer <lukas.a...@aisec.fraunhofer.de> > --- > > arch/Kconfig | 6 +++ > arch/riscv/Kconfig | 3 ++ > arch/riscv/cpu/generic/Kconfig | 3 ++ > arch/riscv/cpu/start.S | 23 +++++++++- > arch/riscv/cpu/u-boot-spl.lds | 82 ++++++++++++++++++++++++++++++++++ > arch/riscv/include/asm/spl.h | 31 +++++++++++++ > arch/riscv/lib/Makefile | 1 + > arch/riscv/lib/spl.c | 48 ++++++++++++++++++++ > 8 files changed, 196 insertions(+), 1 deletion(-) > create mode 100644 arch/riscv/cpu/u-boot-spl.lds > create mode 100644 arch/riscv/include/asm/spl.h > create mode 100644 arch/riscv/lib/spl.c >
Reviewed-by: Bin Meng <bmeng...@gmail.com> Tested-by: Bin Meng <bmeng...@gmail.com> _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot