summaryrefslogtreecommitdiff
path: root/packages/linux/nslu2-kernel/2.6.15/20-timer.patch
blob: f829fc8db7924bbf7debecaf3f850f4c5823f876 (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.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)