U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] RISCV: config: Remove CFG_SYS_SDRAM_BASE
@ 2025-03-10  1:47 Jimmy Ho
  2025-03-25  3:57 ` Leo Liang
  0 siblings, 1 reply; 2+ messages in thread
From: Jimmy Ho @ 2025-03-10  1:47 UTC (permalink / raw)
  To: u-boot; +Cc: Jimmy Ho

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@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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] RISCV: config: Remove CFG_SYS_SDRAM_BASE
  2025-03-10  1:47 [PATCH] RISCV: config: Remove CFG_SYS_SDRAM_BASE Jimmy Ho
@ 2025-03-25  3:57 ` Leo Liang
  0 siblings, 0 replies; 2+ messages in thread
From: Leo Liang @ 2025-03-25  3:57 UTC (permalink / raw)
  To: Jimmy Ho; +Cc: u-boot

On Mon, Mar 10, 2025 at 09:47:48AM +0800, Jimmy Ho wrote:
> 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@sifive.com>
> ---
>  include/configs/sifive-unleashed.h | 1 -
>  include/configs/sifive-unmatched.h | 1 -
>  2 files changed, 2 deletions(-)

Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-03-25  3:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-10  1:47 [PATCH] RISCV: config: Remove CFG_SYS_SDRAM_BASE Jimmy Ho
2025-03-25  3:57 ` Leo Liang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox