1.1 --- a/src/sh4/timer.c Sat Jan 06 04:05:32 2007 +0000
1.2 +++ b/src/sh4/timer.c Tue Oct 02 08:48:27 2007 +0000
1.5 - * $Id: timer.c,v 1.6 2007-01-06 04:05:32 nkeynes Exp $
1.6 + * $Id: timer.c,v 1.7 2007-01-25 10:18:42 nkeynes Exp $
1.8 * SH4 Timer/Clock peripheral modules (CPG, TMU, RTC), combined together to
1.9 * keep things simple (they intertwine a bit).
1.11 case FRQCR: /* Frequency control */
1.12 div = ifc_divider[(val >> 6) & 0x07];
1.13 sh4_cpu_freq = sh4_input_freq / div;
1.14 - sh4_cpu_period = 4000 * div / sh4_input_freq;
1.15 + sh4_cpu_period = 2000 * div / sh4_input_freq;
1.16 div = ifc_divider[(val >> 3) & 0x07];
1.17 sh4_bus_freq = sh4_input_freq / div;
1.18 sh4_bus_period = 1000 * div / sh4_input_freq;