summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2022-05-26 13:13:21 -0400
committerTom Rini <[email protected]>2022-06-06 12:09:27 -0400
commitf113d7d3034672de7d074506a05a7055f1f0dcae (patch)
tree87984fe0167ce949d00036a4630bce55b252bf0c /common
parenteaf6ea6a1dc10d49cdcbcad0f8b0abb6c1eb1db1 (diff)
Convert CONFIG_SPL_STACK to Kconfig
This converts the following to Kconfig: CONFIG_SPL_STACK Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'common')
-rw-r--r--common/spl/Kconfig18
1 files changed, 18 insertions, 0 deletions
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 3cee3c323e8..89288797513 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -357,6 +357,24 @@ config TPL_SYS_MALLOC_SIMPLE
this will make the TPL binary smaller at the cost of more heap
usage as the *_simple malloc functions do not re-use free-ed mem.
+config SPL_SHARES_INIT_SP_ADDR
+ bool "SPL and U-Boot use the same initial stack pointer location"
+ depends on (ARM || ARCH_JZ47XX || MICROBLAZE || RISCV) && SPL_FRAMEWORK
+ default n if ARCH_SUNXI
+ default y
+ help
+ In many cases, we can use the same initial stack pointer address for
+ both SPL and U-Boot itself. If you need to specify a different address
+ however, say N here and then set a different value in CONFIG_SPL_STACK.
+
+config SPL_STACK
+ hex "Initial stack pointer location"
+ depends on (ARM || ARCH_JZ47XX || MICROBLAZE || RISCV) && SPL_FRAMEWORK
+ depends on !SPL_SHARES_INIT_SP_ADDR
+ help
+ Address of the start of the stack SPL will use before SDRAM is
+ initialized.
+
config SPL_STACK_R
bool "Enable SDRAM location for SPL stack"
help