From patchwork Thu Jan 23 08:27:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olliver Schinagl X-Patchwork-Id: 239953 List-Id: U-Boot discussion From: oliver at schinagl.nl (Olliver Schinagl) Date: Thu, 23 Jan 2020 09:27:06 +0100 Subject: [PATCH] Kconfig/zynq: Set default SPL_STACK_R_ADDR Message-ID: <20200123082706.22858-1-oliver@schinagl.nl> 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 --- arch/arm/Kconfig | 1 + common/spl/Kconfig | 1 + 2 files changed, 2 insertions(+) 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.