aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-05-27 10:19:45 -0400
committerTom Rini <trini@konsulko.com>2022-06-06 12:09:28 -0400
commit6600b355c71e80c99d8edb8603dd5e3df8ed4db8 (patch)
treed1179e1dd0a4be5ae68ab05cd635ce7e1b38f824 /common
parent55cf860ba7d604081b11b8ddc23c79572a0ada34 (diff)
downloadu-boot-6600b355c71e80c99d8edb8603dd5e3df8ed4db8.zip
u-boot-6600b355c71e80c99d8edb8603dd5e3df8ed4db8.tar.gz
u-boot-6600b355c71e80c99d8edb8603dd5e3df8ed4db8.tar.bz2
Convert CONFIG_SPL_BSS_START_ADDR to Kconfig
This converts the following to Kconfig: CONFIG_SPL_BSS_START_ADDR Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'common')
-rw-r--r--common/spl/Kconfig15
1 files changed, 15 insertions, 0 deletions
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 304fd0e..adcd7ca 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -105,6 +105,21 @@ config SPL_PAD_TO
0, meaning to append the SPL payload without any padding, or >=
CONFIG_SPL_MAX_SIZE.
+config SPL_HAS_BSS_LINKER_SECTION
+ depends on SPL_FRAMEWORK
+ bool "Use a specific address for the BSS via the linker script"
+ default y if ARCH_SUNXI || ARCH_MX6 || ARCH_OMAP2PLUS || MIPS || RISCV
+
+config SPL_BSS_START_ADDR
+ hex "Link address for the BSS within the SPL binary"
+ depends on SPL_HAS_BSS_LINKER_SECTION
+ default 0x88200000 if (ARCH_MX6 && (MX6SX || MX6SL || MX6UL || MX6ULL)) || ARCH_MX7
+ default 0x18200000 if ARCH_MX6 && !(MX6SX || MX6SL || MX6UL || MX6ULL)
+ default 0x80a00000 if ARCH_OMAP2PLUS
+ default 0x81f80000 if ARCH_SUNXI && MACH_SUNIV
+ default 0x4ff80000 if ARCH_SUNXI && !(MACH_SUN9I || MACH_SUNIV)
+ default 0x2ff80000 if ARCH_SUNXI && MACH_SUN9I
+
choice
prompt "Enforce SPL BSS limit"
depends on SPL && !PPC