aboutsummaryrefslogtreecommitdiff
path: root/board/freescale/ls2080aqds/ddr.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/freescale/ls2080aqds/ddr.c')
-rw-r--r--board/freescale/ls2080aqds/ddr.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/board/freescale/ls2080aqds/ddr.c b/board/freescale/ls2080aqds/ddr.c
index bd32c54fc15..1e9145d6ab2 100644
--- a/board/freescale/ls2080aqds/ddr.c
+++ b/board/freescale/ls2080aqds/ddr.c
@@ -155,17 +155,15 @@ found:
}
}
-phys_size_t initdram(void)
+int initdram(void)
{
- phys_size_t dram_size;
-
#if defined(CONFIG_SPL) && !defined(CONFIG_SPL_BUILD)
- return fsl_ddr_sdram_size();
+ gd->ram_size = fsl_ddr_sdram_size();
#else
puts("Initializing DDR....using SPD\n");
- dram_size = fsl_ddr_sdram();
+ gd->ram_size = fsl_ddr_sdram();
#endif
- return dram_size;
+ return 0;
}