s5pc210: universal: reduce size of bank1 for ram console
authorMinkyu Kang <mk7.kang@samsung.com>
Thu, 16 Dec 2010 10:19:33 +0000 (19:19 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Thu, 16 Dec 2010 10:19:33 +0000 (19:19 +0900)
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
board/samsung/universal_c210/universal.c

index ee54542..92e1303 100644 (file)
@@ -203,8 +203,10 @@ int board_init(void)
 
 int dram_init(void)
 {
-       gd->ram_size = PHYS_SDRAM_1_SIZE + PHYS_SDRAM_2_SIZE -
-               CONFIG_SYS_RAM_CONSOLE_SIZE;
+       gd->ram_size = PHYS_SDRAM_1_SIZE + PHYS_SDRAM_2_SIZE;
+#ifdef CONFIG_SYS_RAM_CONSOLE_SIZE
+       gd->ram_size -= CONFIG_SYS_RAM_CONSOLE_SIZE;
+#endif
 
        /* Early init for i2c devices - Where these funcions should go?? */
 
@@ -232,6 +234,9 @@ void dram_init_banksize(void)
        gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
        gd->bd->bi_dram[1].start = PHYS_SDRAM_2;
        gd->bd->bi_dram[1].size = PHYS_SDRAM_2_SIZE;
+#ifdef CONFIG_SYS_RAM_CONSOLE_SIZE
+       gd->bd->bi_dram[1].size -= CONFIG_SYS_RAM_CONSOLE_SIZE;
+#endif
 
        gd->ram_size = gd->bd->bi_dram[0].size + gd->bd->bi_dram[1].size;
 }