]> git.sur5r.net Git - u-boot/commitdiff
spear: fix build errors for spear3xx/spear600 platforms
authorShiraz Hashim <shiraz.hashim@st.com>
Sat, 11 Jun 2011 21:32:57 +0000 (21:32 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 4 Aug 2011 11:50:01 +0000 (13:50 +0200)
Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com>
Acked-by: Vipin Kumar <vipin.kumar@st.com>
board/spear/common/spr_misc.c
include/configs/spear-common.h

index 0562222ac823a20aef40df76f34a3e8bd99d7c63..0812c20b8c8895c4ae707226ecf952a36bdb3af1 100644 (file)
@@ -46,9 +46,7 @@ int dram_init(void)
        struct xloader_table_1_2 *table_1_2;
        struct chip_data *chip = &chip_data;
 
-       gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
-       gd->bd->bi_dram[0].size = get_ram_size(PHYS_SDRAM_1,
-                                              PHYS_SDRAM_1_MAXSIZE);
+       gd->ram_size = get_ram_size(PHYS_SDRAM_1, PHYS_SDRAM_1_MAXSIZE);
 
        if (XLOADER_TABLE_VERSION_1_1 == xloader_tb->table_version) {
                table_1_1 = &xloader_tb->table.table_1_1;
@@ -66,6 +64,12 @@ int dram_init(void)
        return 0;
 }
 
+void dram_init_banksize(void)
+{
+       gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
+       gd->bd->bi_dram[0].size = gd->ram_size;
+}
+
 int misc_init_r(void)
 {
 #if defined(CONFIG_CMD_NET)
index 4e5bdea369a34ebb30ff23b498b29ac4d41ad522..55d19b5ce3f4cc88b4a343ab80d6dda047fded6d 100644 (file)
@@ -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
 #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