diff mbox series

Kconfig/zynq: Set default SPL_STACK_R_ADDR

Message ID 20200123082706.22858-1-oliver@schinagl.nl
State New
Headers show
Series Kconfig/zynq: Set default SPL_STACK_R_ADDR | expand

Commit Message

Olliver Schinagl Jan. 23, 2020, 8:27 a.m. UTC
The zynq architecture depends on SPL_STACK_R_ADDR to be set, and thus it
makes sense for the ARCH_ZYNQ to depend on SPL_STACK_R. Further more
that address needs to have a sane default. So lets follow the OMAP2PLUS
and set a default for the Zynq as well.

Signed-off-by: Olliver Schinagl <oliver at schinagl.nl>
---
 arch/arm/Kconfig   | 1 +
 common/spl/Kconfig | 1 +
 2 files changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index a623ef5743..413b3e3a6e 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1046,6 +1046,7 @@  config ARCH_ZYNQ
 	select SPL_DM if SPL
 	select SPL_OF_CONTROL if SPL
 	select SPL_SEPARATE_BSS if SPL
+	select SPL_STACK_R if SPL
 	select SUPPORT_SPL
 	imply ARCH_EARLY_INIT_R
 	imply BOARD_LATE_INIT
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 76f39dc04f..cdebc62d0f 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -244,6 +244,7 @@  config SPL_STACK_R_ADDR
 	depends on SPL_STACK_R
 	hex "SDRAM location for SPL stack"
 	default 0x82000000 if ARCH_OMAP2PLUS
+	default 0x200000 if ARCH_ZYNQ
 	help
 	  Specify the address in SDRAM for the SPL stack. This will be set up
 	  before board_init_r() is called.