diff options
Diffstat (limited to 'packages/linux/nslu2-kernel/2.6.15/20-timer.patch')
-rw-r--r-- | packages/linux/nslu2-kernel/2.6.15/20-timer.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/linux/nslu2-kernel/2.6.15/20-timer.patch b/packages/linux/nslu2-kernel/2.6.15/20-timer.patch new file mode 100644 index 0000000000..f829fc8db7 --- /dev/null +++ b/packages/linux/nslu2-kernel/2.6.15/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.15/include/asm-arm/arch-ixp4xx/timex.h 1970-01-01 00:00:00.000000000 +0000 ++++ linux-2.6.15/include/asm-arm/arch-ixp4xx/timex.h 1970-01-01 00:00:00.000000000 +0000 +@@ -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) + |