]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/linux/nslu2-kernel/2.6/timer.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / linux / nslu2-kernel / 2.6 / timer.patch
1 # Fix for the NSLU2 timer problem (tickadj 10101.01 when it should be 10000)
2 # Also contains a fix for the more generate problem on the ixp4xx in that the
3 # Intel spec says to use a 33.33MHz crystal, not 33.333333Mhz
4
5 --- linux-2.6.12.2/include/asm-arm/arch-ixp4xx/timex.h.orig     2005-08-05 11:02:09.872690723 -0700
6 +++ linux-2.6.12.2/include/asm-arm/arch-ixp4xx/timex.h  2005-08-05 11:45:08.786971567 -0700
7 @@ -7,7 +7,14 @@
8  
9  /*
10   * We use IXP425 General purpose timer for our timer needs, it runs at 
11 - * 66.66... MHz
12 + * 66.66 MHz (exactly) by the Intel specification.
13   */
14 -#define CLOCK_TICK_RATE (66666666)
15 -
16 +#if 0
17 +#define CLOCK_TICK_RATE (66660000)
18 +#else
19 +/*
20 + * Unfortunately the NSLU2 has a 33MHz crystal, so the rate is not the
21 + * specified one.
22 + */
23 +#define CLOCK_TICK_RATE (66000000)
24 +#endif