[U-Boot] [PATCH v4 5/7] imx6: add some flexibility for defining macros
John Tobias
john.tobias.ph at gmail.com
Tue Nov 11 23:50:19 CET 2014
iMX6 SabreSD has a different stack address (0x0093FFB8) compare
to the default stack address defined in the file.
The CONFIG_SYS_TEXT_BASE is defined in mx6sabre_common.h.
It is better to add the #ifndef to avoid compilation
warnings.
Signed-off-by: John Tobias <john.tobias.ph at gmail.com>
---
include/configs/imx6_spl.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/configs/imx6_spl.h b/include/configs/imx6_spl.h
index 5a5f940..4ff37b3 100644
--- a/include/configs/imx6_spl.h
+++ b/include/configs/imx6_spl.h
@@ -29,7 +29,9 @@
#define CONFIG_SPL_TEXT_BASE 0x00908000
#define CONFIG_SPL_MAX_SIZE 0x10000
#define CONFIG_SPL_START_S_PATH "arch/arm/cpu/armv7"
+#ifndef CONFIG_SPL_STACK
#define CONFIG_SPL_STACK 0x0091FFB8
+#endif
#define CONFIG_SPL_LIBCOMMON_SUPPORT
#define CONFIG_SPL_LIBGENERIC_SUPPORT
#define CONFIG_SPL_SERIAL_SUPPORT
@@ -66,7 +68,9 @@
#define CONFIG_SPL_BSS_MAX_SIZE 0x100000 /* 1 MB */
#define CONFIG_SYS_SPL_MALLOC_START 0x18300000
#define CONFIG_SYS_SPL_MALLOC_SIZE 0x3200000 /* 50 MB */
+#ifndef CONFIG_SYS_TEXT_BASE
#define CONFIG_SYS_TEXT_BASE 0x17800000
#endif
+#endif
#endif
--
1.9.1
More information about the U-Boot
mailing list