Patchwork [U-Boot] integratorcp: make the board compile

login
register
mail settings
Submitter Linus Walleij
Date July 20, 2011, 8:06 a.m.
Message ID <1311149162-4717-1-git-send-email-linus.walleij@linaro.org>
Download mbox | patch
Permalink /patch/105593/
State Accepted
Commit 9ecefbfe26acff51cfb670b6716e0f68bfc90db4
Headers show

Comments

Linus Walleij - July 20, 2011, 8:06 a.m.
This defines the requires CONFIG_SYS_* variables to make the
Integrator CP board compile.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
This complements the other Integrator patches so that the CP
variants also build cleanly with the new build system.
---
 include/configs/integratorcp.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Patch

diff --git a/include/configs/integratorcp.h b/include/configs/integratorcp.h
index 210bc9d..e9b68c6 100644
--- a/include/configs/integratorcp.h
+++ b/include/configs/integratorcp.h
@@ -142,6 +142,12 @@  SIB at Block62 End Block62 address 0x24f80000
 #define CONFIG_NR_DRAM_BANKS	1		/* we have 1 bank of DRAM */
 #define PHYS_SDRAM_1		0x00000000	/* SDRAM Bank #1 */
 #define PHYS_SDRAM_1_SIZE	0x08000000	/* 128 MB */
+#define CONFIG_SYS_SDRAM_BASE	PHYS_SDRAM_1
+#define CONFIG_SYS_INIT_RAM_SIZE PHYS_SDRAM_1_SIZE
+#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_SDRAM_BASE + \
+				    CONFIG_SYS_INIT_RAM_SIZE - \
+				    GENERATED_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_ADDR CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization