summaryrefslogtreecommitdiff
path: root/include/configs/spear-common.h
diff options
context:
space:
mode:
authorShiraz Hashim <shiraz.hashim@st.com>2011-06-11 21:32:57 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-08-04 13:50:01 +0200
commita39fcfb24be1520859af038971f1eb1b5e06e927 (patch)
tree6c47737d2935c4ff35ddf637c1f234d53b01822a /include/configs/spear-common.h
parentceb1d6d75e1a3102ceb7f4407840d9f92b87a926 (diff)
downloadu-boot-imx-a39fcfb24be1520859af038971f1eb1b5e06e927.zip
u-boot-imx-a39fcfb24be1520859af038971f1eb1b5e06e927.tar.gz
u-boot-imx-a39fcfb24be1520859af038971f1eb1b5e06e927.tar.bz2
spear: fix build errors for spear3xx/spear600 platforms
Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com> Acked-by: Vipin Kumar <vipin.kumar@st.com>
Diffstat (limited to 'include/configs/spear-common.h')
-rw-r--r--include/configs/spear-common.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/configs/spear-common.h b/include/configs/spear-common.h
index 4e5bdea..55d19b5 100644
--- a/include/configs/spear-common.h
+++ b/include/configs/spear-common.h
@@ -86,6 +86,8 @@
#define CONFIG_SYS_LOADS_BAUD_CHANGE
/* NAND FLASH Configuration */
+#define CONFIG_MTD_DEVICE
+#define CONFIG_MTD_PARTITIONS
#define CONFIG_NAND_SPEAR 1
#define CONFIG_SYS_MAX_NAND_DEVICE 1
#define CONFIG_MTD_NAND_VERIFY_WRITE 1
@@ -209,4 +211,14 @@
#define PHYS_SDRAM_1 0x00000000
#define PHYS_SDRAM_1_MAXSIZE 0x40000000
+#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
+#define CONFIG_SYS_INIT_RAM_ADDR 0xD2800000
+#define CONFIG_SYS_INIT_RAM_SIZE 0x2000
+
+#define CONFIG_SYS_INIT_SP_OFFSET \
+ (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
+
+#define CONFIG_SYS_INIT_SP_ADDR \
+ (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
+
#endif