]> git.sur5r.net Git - u-boot/blobdiff - cpu/i386/sc520.c
GCC-4.x fixes: clean up global data pointer initialization for all boards.
[u-boot] / cpu / i386 / sc520.c
index 689e775c938160a7747d2b51f3d1adb37275ad33..c83f0bb6cf3cfc2cf1e6d6f0f84533c824c15228 100644 (file)
@@ -36,6 +36,8 @@
 #include <asm/pci.h>
 #include <asm/ic/sc520.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 /*
  * utility functions for boards based on the AMD sc520
  *
@@ -93,8 +95,6 @@ u32 read_mmcr_long(u16 mmcr)
 
 void init_sc520(void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        /* Set the UARTxCTL register at it's slower,
         * baud clock giving us a 1.8432 MHz reference
         */
@@ -139,7 +139,6 @@ void init_sc520(void)
 
 unsigned long init_sc520_dram(void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
        bd_t *bd = gd->bd;
 
        u32 dram_present=0;