s5p6442: smdk6442: Fix mem info
authorJoonyoung Shim <jy0922.shim@samsung.com>
Tue, 19 Jan 2010 01:52:49 +0000 (10:52 +0900)
committerJoonyoung Shim <jy0922.shim@samsung.com>
Tue, 19 Jan 2010 01:52:49 +0000 (10:52 +0900)
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
board/samsung/smdk6442/smdk6442.c
include/configs/smdk6442.h

index 78b0b4f..3487dfd 100644 (file)
@@ -36,8 +36,10 @@ 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->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;
 
        return 0;
 }
index cf4e8ed..8ae0027 100644 (file)
  */
 #define CONFIG_STACKSIZE       (256 << 10)     /* regular stack 256KB */
 
-/* S5P6442 has 1 banks of DRAM */
-#define CONFIG_NR_DRAM_BANKS   1
-#define PHYS_SDRAM_1           CONFIG_SYS_SDRAM_BASE   /* SDRAM Bank #1 */
-#define PHYS_SDRAM_1_SIZE      (128 << 20)             /* 128 MB in Bank #1 */
+/* S5P6442 has 2 banks of DRAM */
+#define CONFIG_NR_DRAM_BANKS   2
+
+/* SDRAM Bank #1 */
+#define PHYS_SDRAM_1           CONFIG_SYS_SDRAM_BASE
+#define PHYS_SDRAM_1_SIZE      (80 << 20)              /* 80 MB in Bank #1 */
+
+/* SDRAM Bank #2 */
+#define PHYS_SDRAM_2           CONFIG_SYS_SDRAM_BASE + 0x10000000
+#define PHYS_SDRAM_2_SIZE      (256 << 20)             /* 256 MB in Bank #2 */
 
 #define CONFIG_SYS_MONITOR_BASE        0x00000000