diff mbox series

[U-Boot,2/3] arm: sunxi: use real values for CONFIG_STANDALONE_LOAD_ADDR

Message ID 20180923200209.12233-3-daniel.schwierzeck@gmail.com
State Deferred
Delegated to: Tom Rini
Headers show
Series Kconfig: move CONFIG_STANDALONE_LOAD_ADDR to Kconfig | expand

Commit Message

Daniel Schwierzeck Sept. 23, 2018, 8:02 p.m. UTC
All standalone programs on sunxi boards are linked to 0x42000000.
Exceptions are only sun9i boards with a link address of 0x22000000.
Use these values directly to prepare for Kconfig migration of
CONFIG_STANDALONE_LOAD_ADDR.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
---

 include/configs/sunxi-common.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h
index 9819d9980c..0338d85b7f 100644
--- a/include/configs/sunxi-common.h
+++ b/include/configs/sunxi-common.h
@@ -170,7 +170,11 @@ 
 #define CONFIG_SYS_PBSIZE	1024	/* Print Buffer Size */
 
 /* standalone support */
-#define CONFIG_STANDALONE_LOAD_ADDR	CONFIG_SYS_LOAD_ADDR
+#ifdef CONFIG_MACH_SUN9I
+#define CONFIG_STANDALONE_LOAD_ADDR	0x22000000
+#else
+#define CONFIG_STANDALONE_LOAD_ADDR	0x42000000
+#endif
 
 /* FLASH and environment organization */