]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/linux/nslu2-kernel/2.6.14/20-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.14 / 20-timer.patch
1 diff -urN linux-2.6.13.1/include/asm-arm/arch-ixp4xx/timex.h nslu2-2.6.13.1/include/asm-arm/arch-ixp4xx/timex.h
2 --- linux-2.6.13.1/include/asm-arm/arch-ixp4xx/timex.h  2005-09-17 12:42:45.000000000 +0200
3 +++ nslu2-2.6.13.1/include/asm-arm/arch-ixp4xx/timex.h  2005-09-17 12:15:31.000000000 +0200
4 @@ -9,7 +9,12 @@
5   * We use IXP425 General purpose timer for our timer needs, it runs at 
6   * 66.66... MHz. We do a convulted calculation of CLOCK_TICK_RATE b/c the
7   * timer register ignores the bottom 2 bits of the LATCH value.
8 + * The NSLU2 has a 33.00MHz crystal, so a different FREQ is required.
9   */
10 +#ifdef CONFIG_MACH_NSLU2
11 +#define FREQ 66000000
12 +#else
13  #define FREQ 66666666
14 +#endif
15  #define CLOCK_TICK_RATE (((FREQ / HZ & ~IXP4XX_OST_RELOAD_MASK) + 1) * HZ)
16