Different SoCs have different RAM layouts, so using
$(CONFIG_LOADADDR) instead of the constant 0xc10 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 1a9db4..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 = 0x8030
else
+ifndef CONFIG_LOADADDR
CONFIG_STANDALONE_LOAD_ADDR = 0xc10
+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 addressStart address
x86 0x0004 0x0004
PowerPC 0x0004 0x00040004
- ARM 0x0c10 0x0c10
+ ARM CONFIG_LOADADDR CONFIG_LOADADDR
MIPS0x8020 0x8020
Blackfin0x1000 0x1000
NDS32 0x0030 0x0030
--
2.13.1
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot