85xx,86xx: Determine I2C clock frequencies and store in global_data
[oweals/u-boot.git] / cpu / mpc86xx / cpu_init.c
index c8e46666949adc326045155513fc32e51f40385e..4f8956e0afe18e7154089e93cdb5d7074f7a252f 100644 (file)
@@ -29,6 +29,8 @@
 #include <common.h>
 #include <mpc86xx.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 /*
  * Breathe some life into the CPU...
  *
@@ -38,7 +40,6 @@
 
 void cpu_init_f(void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
        volatile immap_t    *immap = (immap_t *)CFG_IMMR;
        volatile ccsr_lbc_t *memctl = &immap->im_lbc;