From: Max Krummenacher Date: Mon, 14 Aug 2017 18:27:19 +0200 Subject: [U-Boot] [PATCH v2 1/2] arm: use LOADADDR as the default for STANDALONE_LOAD_ADDR In-Reply-To: <20170814162720.18731-1-max.krummenacher@toradex.com> References: <20170814162720.18731-1-max.krummenacher@toradex.com> Message-ID: <20170814162720.18731-2-max.krummenacher@toradex.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Different SoCs have different RAM layouts, so using $(CONFIG_LOADADDR) instead of the constant 0xc100000 for CONFIG_STANDALONE_LOAD_ADDR is probably more appropriate. Signed-off-by: Max Krummenacher --- Changes in v2: - Don't confuse loadaddr with entry point as reported by Wolfgang. arch/arm/config.mk | 4 ++++ doc/README.standalone | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/config.mk b/arch/arm/config.mk index 1a77779db4..8f56c7433f 100644 --- a/arch/arm/config.mk +++ b/arch/arm/config.mk @@ -9,7 +9,11 @@ ifndef CONFIG_STANDALONE_LOAD_ADDR ifneq ($(CONFIG_ARCH_OMAP2PLUS),) CONFIG_STANDALONE_LOAD_ADDR = 0x80300000 else +ifndef CONFIG_LOADADDR CONFIG_STANDALONE_LOAD_ADDR = 0xc100000 +else +CONFIG_STANDALONE_LOAD_ADDR = $(CONFIG_LOADADDR) +endif endif endif diff --git a/doc/README.standalone b/doc/README.standalone index 659a12f6cb..17d740c44b 100644 --- a/doc/README.standalone +++ b/doc/README.standalone @@ -53,7 +53,7 @@ Design Notes on Exporting U-Boot Functions to Standalone Applications: Load address Start address x86 0x00040000 0x00040000 PowerPC 0x00040000 0x00040004 - ARM 0x0c100000 0x0c100000 + ARM CONFIG_LOADADDR CONFIG_LOADADDR MIPS 0x80200000 0x80200000 Blackfin 0x00001000 0x00001000 NDS32 0x00300000 0x00300000 -- 2.13.1