Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
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?? */
#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
/*-----------------------------------------------------------------------