diff options
Diffstat (limited to 'packages/linux/nslu2-kernel/2.6.14/20-timer.patch')
-rw-r--r-- | packages/linux/nslu2-kernel/2.6.14/20-timer.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/linux/nslu2-kernel/2.6.14/20-timer.patch b/packages/linux/nslu2-kernel/2.6.14/20-timer.patch new file mode 100644 index 0000000000..5d78ce25eb --- /dev/null +++ b/packages/linux/nslu2-kernel/2.6.14/20-timer.patch @@ -0,0 +1,16 @@ +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 +--- linux-2.6.13.1/include/asm-arm/arch-ixp4xx/timex.h 2005-09-17 12:42:45.000000000 +0200 ++++ nslu2-2.6.13.1/include/asm-arm/arch-ixp4xx/timex.h 2005-09-17 12:15:31.000000000 +0200 +@@ -9,7 +9,12 @@ + * We use IXP425 General purpose timer for our timer needs, it runs at + * 66.66... MHz. We do a convulted calculation of CLOCK_TICK_RATE b/c the + * timer register ignores the bottom 2 bits of the LATCH value. ++ * The NSLU2 has a 33.00MHz crystal, so a different FREQ is required. + */ ++#ifdef CONFIG_MACH_NSLU2 ++#define FREQ 66000000 ++#else + #define FREQ 66666666 ++#endif + #define CLOCK_TICK_RATE (((FREQ / HZ & ~IXP4XX_OST_RELOAD_MASK) + 1) * HZ) + |