[PATCH] RISCV: config: Remove CFG_SYS_SDRAM_BASE
Jimmy Ho
jimmy.ho at sifive.com
Mon Mar 10 02:47:48 CET 2025
Remove CFG_SYS_SDRAM_BASE so that we can get DRAM base from dt instead of compile time config.
Removing this config helps the u-boot more portable.
Signed-off-by: Jimmy Ho <jimmy.ho at sifive.com>
---
include/configs/sifive-unleashed.h | 1 -
include/configs/sifive-unmatched.h | 1 -
2 files changed, 2 deletions(-)
diff --git a/include/configs/sifive-unleashed.h b/include/configs/sifive-unleashed.h
index 2996b37572..cd8d0438ba 100644
--- a/include/configs/sifive-unleashed.h
+++ b/include/configs/sifive-unleashed.h
@@ -11,7 +11,6 @@
#include <linux/sizes.h>
-#define CFG_SYS_SDRAM_BASE 0x80000000
#define RISCV_MMODE_TIMERBASE 0x2000000
#define RISCV_MMODE_TIMEROFF 0xbff8
diff --git a/include/configs/sifive-unmatched.h b/include/configs/sifive-unmatched.h
index 27e0912665..e0064edc5c 100644
--- a/include/configs/sifive-unmatched.h
+++ b/include/configs/sifive-unmatched.h
@@ -11,6 +11,5 @@
#include <linux/sizes.h>
-#define CFG_SYS_SDRAM_BASE 0x80000000
#endif /* __SIFIVE_UNMATCHED_H */
--
2.39.3
More information about the U-Boot
mailing list