[PATCH 15/22] sunxi: Move SPL_TEXT_BASE to the board Kconfig

Samuel Holland samuel at sholland.org
Tue Nov 1 06:08:27 CET 2022


It makes sense to put this near the definition of SUNXI_SRAM_ADDRESS.

Signed-off-by: Samuel Holland <samuel at sholland.org>
---

 board/sunxi/Kconfig | 5 +++++
 common/spl/Kconfig  | 3 ---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig
index 1abb3e1816..b561dd467f 100644
--- a/board/sunxi/Kconfig
+++ b/board/sunxi/Kconfig
@@ -73,6 +73,11 @@ config SPL_STACK_R_ADDR
 	default 0x4fe00000 if SUNXI_MINIMUM_DRAM_MB >= 256
 	default 0x43e00000 if SUNXI_MINIMUM_DRAM_MB >= 64
 
+config SPL_TEXT_BASE
+	default 0x10060 if MACH_SUN9I || MACH_SUN50I || MACH_SUN50I_H5
+	default 0x20060 if SUN50I_GEN_H6
+	default 0x00060
+
 config SUNXI_MINIMUM_DRAM_MB
 	int
 	default 32 if MACH_SUNIV
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index b1e9926e68..930028b5af 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -260,9 +260,6 @@ config SPL_TEXT_BASE
 	default 0x402F4000 if AM43XX
 	default 0x402F0400 if AM33XX
 	default 0x40301350 if OMAP54XX
-	default 0x10060 if MACH_SUN50I || MACH_SUN50I_H5 || MACH_SUN9I
-	default 0x20060 if SUN50I_GEN_H6
-	default 0x00060 if ARCH_SUNXI
 	default 0xfffc0000 if ARCH_ZYNQMP
 	default 0x0
 	help
-- 
2.37.3



More information about the U-Boot mailing list