diff options
author | wdenk <wdenk> | 2003-07-31 22:56:30 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2003-07-31 22:56:30 +0000 |
commit | 96dd9af4c7c5669924c2e40734b246f207b9a8b4 (patch) | |
tree | 375c20dc2ca61a2c8a9bf9dd373ecc2882c2a102 | |
parent | 1f4bb37d6bcae59b18a2438f3cdca6545a831ab5 (diff) | |
download | u-boot-imx-96dd9af4c7c5669924c2e40734b246f207b9a8b4.zip u-boot-imx-96dd9af4c7c5669924c2e40734b246f207b9a8b4.tar.gz u-boot-imx-96dd9af4c7c5669924c2e40734b246f207b9a8b4.tar.bz2 |
Must enable timebase earlier on MPC5200
-rw-r--r-- | cpu/mpc5xxx/cpu_init.c | 10 | ||||
-rw-r--r-- | include/configs/incaip.h | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/cpu/mpc5xxx/cpu_init.c b/cpu/mpc5xxx/cpu_init.c index 7322027..cec5c2b 100644 --- a/cpu/mpc5xxx/cpu_init.c +++ b/cpu/mpc5xxx/cpu_init.c @@ -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); diff --git a/include/configs/incaip.h b/include/configs/incaip.h index 027f319..b17d7f3 100644 --- a/include/configs/incaip.h +++ b/include/configs/incaip.h @@ -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 */ |