]> git.baikalelectronics.ru Git - uboot.git/commitdiff
riscv: Add S-mode defconfigs for QEMU virt machine
authorAnup Patel <anup@brainfault.org>
Mon, 3 Dec 2018 05:27:42 +0000 (10:57 +0530)
committerAndes <uboot@andestech.com>
Wed, 5 Dec 2018 06:14:04 +0000 (14:14 +0800)
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@brainfault.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
board/emulation/qemu-riscv/MAINTAINERS
configs/qemu-riscv32_smode_defconfig [new file with mode: 0644]
configs/qemu-riscv64_smode_defconfig [new file with mode: 0644]

index 3c6eb4f844aef9eee01b74c242b5456414af0fd8..c701c83d77ac9b0218d1d9fc237a8dddd8175f0f 100644 (file)
@@ -4,4 +4,6 @@ S:      Maintained
 F:     board/emulation/qemu-riscv/
 F:     include/configs/qemu-riscv.h
 F:     configs/qemu-riscv32_defconfig
+F:     configs/qemu-riscv32_smode_defconfig
 F:     configs/qemu-riscv64_defconfig
+F:     configs/qemu-riscv64_smode_defconfig
diff --git a/configs/qemu-riscv32_smode_defconfig b/configs/qemu-riscv32_smode_defconfig
new file mode 100644 (file)
index 0000000..0a84ec1
--- /dev/null
@@ -0,0 +1,10 @@
+CONFIG_RISCV=y
+CONFIG_TARGET_QEMU_VIRT=y
+CONFIG_RISCV_SMODE=y
+CONFIG_DISTRO_DEFAULTS=y
+CONFIG_NR_DRAM_BANKS=1
+CONFIG_FIT=y
+CONFIG_DISPLAY_CPUINFO=y
+CONFIG_DISPLAY_BOARDINFO=y
+# CONFIG_CMD_MII is not set
+CONFIG_OF_PRIOR_STAGE=y
diff --git a/configs/qemu-riscv64_smode_defconfig b/configs/qemu-riscv64_smode_defconfig
new file mode 100644 (file)
index 0000000..b012443
--- /dev/null
@@ -0,0 +1,11 @@
+CONFIG_RISCV=y
+CONFIG_TARGET_QEMU_VIRT=y
+CONFIG_ARCH_RV64I=y
+CONFIG_RISCV_SMODE=y
+CONFIG_DISTRO_DEFAULTS=y
+CONFIG_NR_DRAM_BANKS=1
+CONFIG_FIT=y
+CONFIG_DISPLAY_CPUINFO=y
+CONFIG_DISPLAY_BOARDINFO=y
+# CONFIG_CMD_MII is not set
+CONFIG_OF_PRIOR_STAGE=y