summaryrefslogtreecommitdiff
path: root/board/freescale/t1040qds/ddr.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/freescale/t1040qds/ddr.c')
-rw-r--r--board/freescale/t1040qds/ddr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/board/freescale/t1040qds/ddr.c b/board/freescale/t1040qds/ddr.c
index a5d3e54cfe..d23787d43a 100644
--- a/board/freescale/t1040qds/ddr.c
+++ b/board/freescale/t1040qds/ddr.c
@@ -117,7 +117,7 @@ void board_mem_sleep_setup(void)
}
#endif
-phys_size_t initdram(void)
+int initdram(void)
{
phys_size_t dram_size;
@@ -134,5 +134,7 @@ phys_size_t initdram(void)
fsl_dp_resume();
#endif
- return dram_size;
+ gd->ram_size = dram_size;
+
+ return 0;
}