]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
S5P: smdkc100: fix for relocation
authorMinkyu Kang <mk7.kang@samsung.com>
Mon, 22 Nov 2010 11:26:46 +0000 (20:26 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 29 Nov 2010 23:45:19 +0000 (08:45 +0900)
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
board/samsung/smdkc100/smdkc100.c
include/configs/smdkc100.h

index 31e8d9e0ec32d7617c40fa7cdfe14f00ce7c3374..d3189f6b780109ef942715c0918ab835a668a668 100644 (file)
@@ -65,13 +65,17 @@ int board_init(void)
 
 int dram_init(void)
 {
-       gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
-       gd->bd->bi_dram[0].size = get_ram_size((long *)PHYS_SDRAM_1,
-                                               PHYS_SDRAM_1_SIZE);
+       gd->ram_size = get_ram_size((long *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE);
 
        return 0;
 }
 
+void dram_init_banksize(void)
+{
+       gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
+       gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
+}
+
 #ifdef CONFIG_DISPLAY_BOARDINFO
 int checkboard(void)
 {
index e36b262a8ec56b8471f3e13e0ba5691b9773d5cd..fb8b43c06dc4db937a27a5383b7db7cb181c4c2c 100644 (file)
 
 #define CONFIG_DOS_PARTITION           1
 
+#define CONFIG_SYS_INIT_SP_ADDR        (CONFIG_SYS_LOAD_ADDR - 0x1000000)
+
 /*
  * Ethernet Contoller driver
  */