aboutsummaryrefslogtreecommitdiff
path: root/board/freescale/t4qds/ddr.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/freescale/t4qds/ddr.c')
-rw-r--r--board/freescale/t4qds/ddr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/board/freescale/t4qds/ddr.c b/board/freescale/t4qds/ddr.c
index 24b18725604..84ff7922254 100644
--- a/board/freescale/t4qds/ddr.c
+++ b/board/freescale/t4qds/ddr.c
@@ -112,7 +112,7 @@ found:
popts->cpo_sample = 0x63;
}
-phys_size_t initdram(void)
+int initdram(void)
{
phys_size_t dram_size;
@@ -127,5 +127,7 @@ phys_size_t initdram(void)
dram_size = setup_ddr_tlbs(dram_size / 0x100000);
dram_size *= 0x100000;
- return dram_size;
+ gd->ram_size = dram_size;
+
+ return 0;
}