summaryrefslogtreecommitdiff
path: root/include/configs/qemu-riscv.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-08-26 09:50:46 -0400
committerTom Rini <trini@konsulko.com>2019-08-26 09:50:46 -0400
commit7a4b0bc5fe70225ae3595ba81d1473c06fd6b83b (patch)
tree08de46c2eb44560654871f78380d4363efdce5ec /include/configs/qemu-riscv.h
parent6f9656d726235b4cbb4f469a82c30e5006a75b53 (diff)
parent44016bc59870c8816fe2cd4721dc5ff11038dd98 (diff)
Merge https://gitlab.denx.de/u-boot/custodians/u-boot-riscv
- Support SPL and OpenSBI (FW_DYNAMIC firmware) boot. - Fix qemu kconfig build warning.
Diffstat (limited to 'include/configs/qemu-riscv.h')
-rw-r--r--include/configs/qemu-riscv.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/configs/qemu-riscv.h b/include/configs/qemu-riscv.h
index ecea1d4765..fa9b9af934 100644
--- a/include/configs/qemu-riscv.h
+++ b/include/configs/qemu-riscv.h
@@ -8,6 +8,18 @@
#include <linux/sizes.h>
+#ifdef CONFIG_SPL
+
+#define CONFIG_SPL_MAX_SIZE 0x00100000
+#define CONFIG_SPL_BSS_START_ADDR 0x84000000
+#define CONFIG_SPL_BSS_MAX_SIZE 0x00100000
+#define CONFIG_SYS_SPL_MALLOC_START 0x84100000
+#define CONFIG_SYS_SPL_MALLOC_SIZE 0x00100000
+
+#define CONFIG_SPL_LOAD_FIT_ADDRESS 0x80200000
+
+#endif
+
#define CONFIG_SYS_SDRAM_BASE 0x80000000
#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + SZ_2M)
@@ -22,6 +34,7 @@
/* Environment options */
#define CONFIG_ENV_SIZE SZ_128K
+#ifndef CONFIG_SPL_BUILD
#define BOOT_TARGET_DEVICES(func) \
func(QEMU, qemu, na) \
func(VIRTIO, virtio, 0) \
@@ -47,5 +60,6 @@
"pxefile_addr_r=0x88200000\0" \
"ramdisk_addr_r=0x88300000\0" \
BOOTENV
+#endif
#endif /* __CONFIG_H */