]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Must enable timebase earlier on MPC5200
authorwdenk <wdenk>
Thu, 31 Jul 2003 22:56:30 +0000 (22:56 +0000)
committerwdenk <wdenk>
Thu, 31 Jul 2003 22:56:30 +0000 (22:56 +0000)
cpu/mpc5xxx/cpu_init.c
include/configs/incaip.h

index 7322027e8b2592857c9d551a26acf9df026d6a0c..cec5c2bc6718527a55619fdc6fd01908ed4f25ac 100644 (file)
@@ -155,6 +155,11 @@ void cpu_init_f (void)
 #if defined(CFG_GPS_PORT_CONFIG)
        *(vu_long *)MPC5XXX_GPS_PORT_CONFIG = CFG_GPS_PORT_CONFIG;
 #endif
+
+#if defined(CONFIG_MPC5200)
+       /* enable timebase */
+       *(vu_long *)(MPC5XXX_XLBARB + 0x40) |= (1 << 13);
+#endif
 }
 
 /*
@@ -171,11 +176,6 @@ int cpu_init_r (void)
        *(vu_long *)MPC5XXX_ICTL_CRIT |= 0x0001ffff;
        *(vu_long *)MPC5XXX_ICTL_EXT &= ~0x00000f00;
 
-#if defined(CONFIG_MPC5200)
-       /* enable timebase */
-       *(vu_long *)(MPC5XXX_XLBARB + 0x40) |= (1 << 13);
-#endif
-
 #if (CONFIG_COMMANDS & CFG_CMD_NET) && defined(CONFIG_MPC5XXX_FEC)
        /* load FEC microcode */
        loadtask(0, 2);
index 027f3198287e9dfcc0734c49aa393921c444207f..b17d7f34e8c03f4e4449555ada4ff38ec68b9fe4 100644 (file)
@@ -32,7 +32,7 @@
 #define CONFIG_INCA_IP         1       /* on a INCA-IP Board   */
 
 /* allowed values: 100000000, 133000000, and 150000000 */
-#define CPU_CLOCK_RATE 133000000   /* 133 MHz clock for the MIPS core */
+#define CPU_CLOCK_RATE 133000000       /* 133 MHz clock for the MIPS core */
 
 #if CPU_CLOCK_RATE == 100000000
 #define INFINEON_EBU_BOOTCFG   0x20C4  /* CMULT = 4 for 100 MHz */