]> git.sur5r.net Git - u-boot/blobdiff - board/xilinx/ppc440-generic/xilinx_ppc440_generic.c
board_f: Drop return value from initdram()
[u-boot] / board / xilinx / ppc440-generic / xilinx_ppc440_generic.c
index 67fd66815737c5e8bded44b3b7a5018c22b87073..d7e6aee706de5a8d4327be80a76f71b12b055742 100644 (file)
 #include <netdev.h>
 #include <asm/processor.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 int checkboard(void)
 {
        puts("Xilinx PPC440 Generic Board\n");
        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)