summaryrefslogtreecommitdiff
path: root/board/samsung
diff options
context:
space:
mode:
authorPiotr Wilczek <p.wilczek@samsung.com>2012-09-20 00:19:56 +0000
committerMinkyu Kang <mk7.kang@samsung.com>2012-11-15 21:08:18 +0900
commit11c5bc0b9d3d0f3416734515e612fcbf962afb6e (patch)
tree838f906699b9cb81d91a3fe7b7fa66c6ba3930b8 /board/samsung
parentb5598578f5260a2703012154d0388eaff10c965a (diff)
downloadu-boot-imx-11c5bc0b9d3d0f3416734515e612fcbf962afb6e.zip
u-boot-imx-11c5bc0b9d3d0f3416734515e612fcbf962afb6e.tar.gz
u-boot-imx-11c5bc0b9d3d0f3416734515e612fcbf962afb6e.tar.bz2
arm:exynos4:trats: Fix SDRAM size
Full 1GiB is visible Signed-off-by: Piotr Wilczek <p.wilczek@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'board/samsung')
-rw-r--r--board/samsung/trats/trats.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/board/samsung/trats/trats.c b/board/samsung/trats/trats.c
index e11a892..7b981fa 100644
--- a/board/samsung/trats/trats.c
+++ b/board/samsung/trats/trats.c
@@ -93,7 +93,9 @@ void i2c_init_board(void)
int dram_init(void)
{
gd->ram_size = get_ram_size((long *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE) +
- get_ram_size((long *)PHYS_SDRAM_2, PHYS_SDRAM_2_SIZE);
+ get_ram_size((long *)PHYS_SDRAM_2, PHYS_SDRAM_2_SIZE) +
+ get_ram_size((long *)PHYS_SDRAM_3, PHYS_SDRAM_3_SIZE) +
+ get_ram_size((long *)PHYS_SDRAM_4, PHYS_SDRAM_4_SIZE);
return 0;
}
@@ -104,6 +106,10 @@ 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;
+ gd->bd->bi_dram[2].start = PHYS_SDRAM_3;
+ gd->bd->bi_dram[2].size = PHYS_SDRAM_3_SIZE;
+ gd->bd->bi_dram[3].start = PHYS_SDRAM_4;
+ gd->bd->bi_dram[3].size = PHYS_SDRAM_4_SIZE;
}
static unsigned int get_hw_revision(void)