34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
diff --git a/configs/qemu-riscv64_smode_defconfig b/configs/qemu-riscv64_smode_defconfig
|
|
index 74743a5e..2e1f7fa9 100644
|
|
--- a/configs/qemu-riscv64_smode_defconfig
|
|
+++ b/configs/qemu-riscv64_smode_defconfig
|
|
@@ -9,3 +9,5 @@ CONFIG_DISPLAY_CPUINFO=y
|
|
CONFIG_DISPLAY_BOARDINFO=y
|
|
# CONFIG_CMD_MII is not set
|
|
CONFIG_OF_PRIOR_STAGE=y
|
|
+CONFIG_USE_PREBOOT=y
|
|
+CONFIG_PREBOOT="setenv fdt_addr ${fdtcontroladdr}; fdt addr ${fdtcontroladdr};"
|
|
diff --git a/configs/sifive_fu540_defconfig b/configs/sifive_fu540_defconfig
|
|
index 48865e5f..a8525793 100644
|
|
--- a/configs/sifive_fu540_defconfig
|
|
+++ b/configs/sifive_fu540_defconfig
|
|
@@ -9,3 +9,5 @@ CONFIG_MISC_INIT_R=y
|
|
CONFIG_DISPLAY_CPUINFO=y
|
|
CONFIG_DISPLAY_BOARDINFO=y
|
|
CONFIG_OF_PRIOR_STAGE=y
|
|
+CONFIG_USE_PREBOOT=y
|
|
+CONFIG_PREBOOT="setenv fdt_addr ${fdtcontroladdr}; fdt addr ${fdtcontroladdr};"
|
|
diff --git a/include/configs/sifive-fu540.h b/include/configs/sifive-fu540.h
|
|
index 858b7a7d..ba4aa065 100644
|
|
--- a/include/configs/sifive-fu540.h
|
|
+++ b/include/configs/sifive-fu540.h
|
|
@@ -40,8 +40,4 @@
|
|
"ramdisk_addr_r=0x88300000\0" \
|
|
BOOTENV
|
|
|
|
-#define CONFIG_PREBOOT \
|
|
- "setenv fdt_addr ${fdtcontroladdr};" \
|
|
- "fdt addr ${fdtcontroladdr};"
|
|
-
|
|
#endif /* __CONFIG_H */
|