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 <[email protected]>
---

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

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 */
 
-- 
2.19.0

_______________________________________________
U-Boot mailing list
[email protected]
https://lists.denx.de/listinfo/u-boot

Reply via email to