85xx: add ability to upload QE firmware
[oweals/u-boot.git] / cpu / mpc5xx / speed.c
index f6097f5c1347265dfa0373b21b6f8e46b4a731a9..6a1fa155e298ab24db7322eb605007e54d35213a 100644 (file)
 #include <mpc5xx.h>
 #include <asm/processor.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 /*
  * Get cpu and bus clock
  */
 int get_clocks (void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
        volatile immap_t *immr = (immap_t *) CFG_IMMR;
 
 #ifndef        CONFIG_5xx_GCLK_FREQ