From 96dd9af4c7c5669924c2e40734b246f207b9a8b4 Mon Sep 17 00:00:00 2001 From: wdenk Date: Thu, 31 Jul 2003 22:56:30 +0000 Subject: Must enable timebase earlier on MPC5200 --- cpu/mpc5xxx/cpu_init.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cpu/mpc5xxx') 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); -- cgit v1.1