s5pc210: universal: reserved 1MB for ram console
authorMinkyu Kang <mk7.kang@samsung.com>
Thu, 16 Dec 2010 08:27:06 +0000 (17:27 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Thu, 16 Dec 2010 08:27:06 +0000 (17:27 +0900)
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
board/samsung/universal_c210/universal.c
include/configs/s5pc210_universal.h

index e615e74..ee54542 100644 (file)
@@ -203,7 +203,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-       gd->ram_size = PHYS_SDRAM_1_SIZE + PHYS_SDRAM_2_SIZE;
+       gd->ram_size = PHYS_SDRAM_1_SIZE + PHYS_SDRAM_2_SIZE -
+               CONFIG_SYS_RAM_CONSOLE_SIZE;
 
        /* Early init for i2c devices - Where these funcions should go?? */
 
index e9ae1fc..da30ca2 100644 (file)
 #define PHYS_SDRAM_2           0x50000000              /* LPDDR2 DMC 1 */
 #define PHYS_SDRAM_2_SIZE      (256 << 20)             /* 256 MB in CS 0 */
 
+#define CONFIG_SYS_RAM_CONSOLE_SIZE    (1 << 20)       /* 1MB */
+
 #define CONFIG_SYS_MONITOR_BASE        0x00000000
 
 /*-----------------------------------------------------------------------