]> git.sur5r.net Git - u-boot/blobdiff - board/prodrive/p3p440/p3p440.c
Merge: Add support for AMCC 440SPe CPU based eval board (Yucca).
[u-boot] / board / prodrive / p3p440 / p3p440.c
index 8ba66bf5e539dad5eac5ef1e6fede3d62ee842d6..2f28e9d87a3477f3f8b9b2d716b4a575dff8da42 100644 (file)
@@ -29,6 +29,8 @@
 
 #include "p3p440.h"
 
+DECLARE_GLOBAL_DATA_PTR;
+
 void set_led(int color)
 {
        switch (color) {
@@ -72,7 +74,7 @@ static void wait_for_pci_ready(void)
        for (;;) {
                if (in32(GPIO0_IR) & CFG_EREADY_IO)
                        return;
-        }
+       }
 
 }
 
@@ -141,8 +143,6 @@ int checkboard(void)
 
 int misc_init_r (void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        /*
         * Adjust flash start and offset to detected values
         */
@@ -206,8 +206,6 @@ int pci_pre_init(struct pci_controller *hose)
 #if defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT)
 void pci_target_init(struct pci_controller *hose)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        /*--------------------------------------------------------------------------+
         * Disable everything
         *--------------------------------------------------------------------------*/