efi_loader: abort on unsupported relocation type
[platform/kernel/u-boot.git] / board / xilinx / ppc405-generic / xilinx_ppc405_generic.c
index 5c19ac0..be6b4dc 100644 (file)
 #include <common.h>
 #include <asm/processor.h>
 
-ulong get_PCI_freq(void)
-{
-       return 0;
-}
+DECLARE_GLOBAL_DATA_PTR;
 
-int board_pre_init(void)
+ulong get_PCI_freq(void)
 {
        return 0;
 }
@@ -26,10 +23,12 @@ int checkboard(void)
        return 0;
 }
 
-phys_size_t initdram(int board_type)
+int dram_init(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)