mbox series

[U-Boot,0/3] RISC-V S-mode support

Message ID 20181120091419.6575-1-anup@brainfault.org
Headers show
Series RISC-V S-mode support | expand

Message

Anup Patel Nov. 20, 2018, 9:14 a.m. UTC
This patchset allows us runing u-boot in S-mode.

This is particularly useful on platforms where M-mode
runtime firmware is an independent firmware and u-boot
is used as last stage OS bootloader.

The patchset is tested on QEMU in both M-mode and S-mode.

Anup Patel (3):
  riscv: Add kconfig option to run u-boot in S-mode
  riscv: qemu: Use different SYS_TEXT_BASE for S-mode
  riscv: Add S-mode defconfigs for QEMU virt machine

 arch/riscv/Kconfig                   |  6 ++++++
 arch/riscv/cpu/start.S               | 31 ++++++++++++++++++++++++++++
 board/emulation/qemu-riscv/Kconfig   |  3 ++-
 configs/qemu-riscv32-smode_defconfig |  7 +++++++
 configs/qemu-riscv64-smode_defconfig |  8 +++++++
 5 files changed, 54 insertions(+), 1 deletion(-)
 create mode 100644 configs/qemu-riscv32-smode_defconfig
 create mode 100644 configs/qemu-riscv64-smode_defconfig

Comments

Anup Patel Nov. 20, 2018, 11:27 a.m. UTC | #1
Hi All,

I will rebase this patchset upon latest RISC-V u-boot
located at:
git://git.denx.de/u-boot-riscv.git

I will also update cover letter to include steps for
running u-boot in S-mode.

Thanks,
Anup