]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/freescale/ls2080aqds/ddr.c
common: freescale: Move arch-specific declarations
[people/ms/u-boot.git] / board / freescale / ls2080aqds / ddr.c
index 0408c0fc251b0ea6024d8b0ec261cc21bbbae7d3..20b8c1fef78e22de9b1e7dbaab2de725b021a171 100644 (file)
@@ -8,6 +8,7 @@
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
 #include <asm/arch/soc.h>
+#include <asm/arch/clock.h>
 #include "ddr.h"
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -155,17 +156,15 @@ found:
        }
 }
 
-phys_size_t initdram(int board_type)
+int fsl_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;
 }