[U-Boot] [PATCH 3/3] riscv: Add S-mode defconfigs for QEMU virt machine

Anup Patel anup at brainfault.org
Tue Nov 20 09:14:19 UTC 2018


This patch adds S-mode defconfigs for QEMU virt machine so
that we can run u-boot in S-mode on QEMU using M-mode runtime
firmware (BBL or equivalent).

Signed-off-by: Anup Patel <anup at brainfault.org>
---
 configs/qemu-riscv32-smode_defconfig | 7 +++++++
 configs/qemu-riscv64-smode_defconfig | 8 ++++++++
 2 files changed, 15 insertions(+)
 create mode 100644 configs/qemu-riscv32-smode_defconfig
 create mode 100644 configs/qemu-riscv64-smode_defconfig

diff --git a/configs/qemu-riscv32-smode_defconfig b/configs/qemu-riscv32-smode_defconfig
new file mode 100644
index 0000000000..902a706733
--- /dev/null
+++ b/configs/qemu-riscv32-smode_defconfig
@@ -0,0 +1,7 @@
+CONFIG_RISCV=y
+CONFIG_TARGET_QEMU_VIRT=y
+CONFIG_RISCV_SMODE=y
+CONFIG_NR_DRAM_BANKS=1
+CONFIG_DISPLAY_CPUINFO=y
+CONFIG_DISPLAY_BOARDINFO=y
+CONFIG_OF_BOARD=y
diff --git a/configs/qemu-riscv64-smode_defconfig b/configs/qemu-riscv64-smode_defconfig
new file mode 100644
index 0000000000..fe830c6190
--- /dev/null
+++ b/configs/qemu-riscv64-smode_defconfig
@@ -0,0 +1,8 @@
+CONFIG_RISCV=y
+CONFIG_TARGET_QEMU_VIRT=y
+CONFIG_CPU_RISCV_64=y
+CONFIG_RISCV_SMODE=y
+CONFIG_NR_DRAM_BANKS=1
+CONFIG_DISPLAY_CPUINFO=y
+CONFIG_DISPLAY_BOARDINFO=y
+CONFIG_OF_BOARD=y
-- 
2.17.1



More information about the U-Boot mailing list