summaryrefslogtreecommitdiff
path: root/packages/linux/nslu2-kernel/2.6.14/20-timer.patch
blob: 5d78ce25eb876055dd75200093a50d2f5c832785 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)