configs: ti_armv7_keystone2: make SYS_TEXT_BASE configurable at build time
authorVitaly Andrianov <vitalya@ti.com>
Mon, 28 Mar 2016 19:15:59 +0000 (15:15 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 1 Apr 2016 21:17:57 +0000 (17:17 -0400)
U-boot for general purpose KS2 devices is loaded to the beginning of the
internal memory (0x0c000000). Secure devices uses this memory and
CONFIG_SYS_TEXT_BASE has to be different for those devices.

This commit make this configurable at build time by giving
CONFIG_SYS_TEXT_BASE as a command line definition to make command.

Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
include/configs/ti_armv7_keystone2.h

index 6a3beac59e91329b6a98eacf10670a0966d46776..41185a159786a51c91643aed3b6d88f4738afcfd 100644 (file)
@@ -20,7 +20,9 @@
 /* SoC Configuration */
 #define CONFIG_ARCH_CPU_INIT
 #define CONFIG_SYS_ARCH_TIMER
+#ifndef CONFIG_SYS_TEXT_BASE
 #define CONFIG_SYS_TEXT_BASE           0x0c000000
+#endif
 #define CONFIG_SPL_TARGET              "u-boot-spi.gph"
 #define CONFIG_SYS_DCACHE_OFF