]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
run arm_pci_init after relocation
authorMichael Schwingen <michael@schwingen.org>
Sun, 22 May 2011 22:00:13 +0000 (00:00 +0200)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 23 Jun 2011 06:25:19 +0000 (08:25 +0200)
Signed-off-by: Michael Schwingen <michael@schwingen.org>
arch/arm/lib/board.c

index 1a784a1e1958328251b283e4ed14d149e3eb5e6d..99bc2c70d43ea1f87f14c81d7127365ab401b628 100644 (file)
@@ -262,9 +262,6 @@ init_fnc_t *init_sequence[] = {
        init_func_i2c,
 #endif
        dram_init,              /* configure available RAM banks */
-#if defined(CONFIG_CMD_PCI) || defined (CONFIG_PCI)
-       arm_pci_init,
-#endif
        NULL,
 };
 
@@ -533,6 +530,9 @@ void board_init_r (gd_t *id, ulong dest_addr)
        /* initialize environment */
        env_relocate ();
 
+#if defined(CONFIG_CMD_PCI) || defined(CONFIG_PCI)
+       arm_pci_init();
+#endif
 #ifdef CONFIG_VFD
        /* must do this after the framebuffer is allocated */
        drv_vfd_init();