[U-Boot] [PATCH 1/3] arm: omap: innovator: fix compilation error

Igor Grinberg grinberg at compulab.co.il
Sun May 1 12:10:30 CEST 2011


CONFIG_SYS_SDRAM_BASE and CONFIG_SYS_INIT_SP_ADDR were not defined for
this board thus breaking its build.

Signed-off-by: Igor Grinberg <grinberg at compulab.co.il>
Cc: Sandeep Paulraj <s-paulraj at ti.com>
Cc: Nishant Kamat <nskamat at ti.com>
Cc: Kshitij Gupta <kshitij at ti.com>
---
 include/configs/omap1610h2.h  |    7 +++++++
 include/configs/omap1610inn.h |    7 +++++++
 2 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/include/configs/omap1610h2.h b/include/configs/omap1610h2.h
index 2936dcc..7e53ae6 100644
--- a/include/configs/omap1610h2.h
+++ b/include/configs/omap1610h2.h
@@ -152,6 +152,13 @@
 #define PHYS_SDRAM_1		0x10000000	/* SDRAM Bank #1 */
 #define PHYS_SDRAM_1_SIZE	0x02000000	/* 32 MB */
 
+#define CONFIG_SYS_SDRAM_BASE		PHYS_SDRAM_1
+#define CONFIG_SYS_INIT_RAM_SIZE	0x1000
+/* FIXME: the value below is taken from davinci which uses ARM926EJS cpu */
+#define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_SDRAM_BASE +    \
+					 CONFIG_SYS_INIT_RAM_SIZE - \
+					 GENERATED_GBL_DATA_SIZE)
+
 #define PHYS_FLASH_1_BM1	0x00000000	/* Flash Bank #1 if booting from flash */
 #define PHYS_FLASH_1_BM0	0x0C000000	/* Flash Bank #1 if booting from RAM */
 
diff --git a/include/configs/omap1610inn.h b/include/configs/omap1610inn.h
index 0b41c46..be569a3 100644
--- a/include/configs/omap1610inn.h
+++ b/include/configs/omap1610inn.h
@@ -157,6 +157,13 @@
 #define PHYS_SDRAM_1		0x10000000	/* SDRAM Bank #1 */
 #define PHYS_SDRAM_1_SIZE	0x02000000	/* 32 MB */
 
+#define CONFIG_SYS_SDRAM_BASE		PHYS_SDRAM_1
+#define CONFIG_SYS_INIT_RAM_SIZE	0x1000
+/* FIXME: the value below is taken from davinci which uses ARM926EJS cpu */
+#define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_SDRAM_BASE +    \
+					 CONFIG_SYS_INIT_RAM_SIZE - \
+					 GENERATED_GBL_DATA_SIZE)
+
 #define PHYS_FLASH_1_BM1	0x00000000	/* Flash Bank #1 if booting from flash */
 #define PHYS_FLASH_1_BM0	0x0C000000	/* Flash Bank #1 if booting from RAM */
 
-- 
1.7.3.4



More information about the U-Boot mailing list