]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/xilinx/ppc405-generic/xilinx_ppc405_generic.c
board_f: Drop return value from initdram()
[people/ms/u-boot.git] / board / xilinx / ppc405-generic / xilinx_ppc405_generic.c
index dfdd3f23103a4617ee44428f1f73832dd2255534..6148a4b69c11c509955ee970b47adf2254052195 100644 (file)
@@ -10,6 +10,8 @@
 #include <common.h>
 #include <asm/processor.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 ulong get_PCI_freq(void)
 {
        return 0;
@@ -21,10 +23,12 @@ int checkboard(void)
        return 0;
 }
 
-phys_size_t initdram(void)
+int initdram(void)
 {
-       return get_ram_size(XPAR_DDR2_SDRAM_MEM_BASEADDR,
+       gd->ram_size = get_ram_size(XPAR_DDR2_SDRAM_MEM_BASEADDR,
                            CONFIG_SYS_SDRAM_SIZE_MB * 1024 * 1024);
+
+       return 0;
 }
 
 void get_sys_info(sys_info_t *sys_info)