Merge branch 'master' of git://git.denx.de/u-boot-arm
[oweals/u-boot.git] / board / vpac270 / onenand.c
index 6a0a37bceccb2f02ebf06cd15a199b1bdd575324..c2ae9a711b3bd7577d9811f3c5abac83a7164518 100644 (file)
@@ -26,8 +26,7 @@
 #include <config.h>
 #include <asm/io.h>
 #include <onenand_uboot.h>
-
-extern void pxa_dram_init(void);
+#include <asm/arch/pxa.h>
 
 void board_init_f(unsigned long unused)
 {
@@ -46,7 +45,7 @@ void board_init_f(unsigned long unused)
 
        /* Hereby, the code runs from (S)RAM, copy U-Boot and execute it. */
        arch_cpu_init();
-       pxa_dram_init();
+       pxa2xx_dram_init();
        onenand_spl_load_image(CONFIG_SPL_ONENAND_LOAD_ADDR,
                                CONFIG_SPL_ONENAND_LOAD_SIZE,
                                (void *)CONFIG_SYS_TEXT_BASE);