summaryrefslogtreecommitdiff
path: root/packages/linux/nslu2-kernel/2.6/20-timer.patch
blob: 356da6bb2808d63885b44f25ab2f16957a02486c (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_ARCH_NSLU2
+#define FREQ 66000000
+#else
 #define FREQ 66666666
+#endif
 #define CLOCK_TICK_RATE (((FREQ / HZ & ~IXP4XX_OST_RELOAD_MASK) + 1) * HZ)