[U-Boot] [PATCH 1/2] arm: use $loadaddr as the standalone entry point
Max Krummenacher
max.oss.09 at gmail.com
Sat Aug 12 09:03:45 UTC 2017
Different SoCs have different RAM layouts, so providing
$(CONFIG_LOADADDR) instead of the constant 0xc100000 for
CONFIG_STANDALONE_LOAD_ADDR is probably more appropriate.
Signed-off-by: Max Krummenacher <max.krummenacher at toradex.com>
---
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
More information about the U-Boot
mailing list