patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / include / asm-arm / arch-pxa / timex.h
index fab199f..aa125ec 100644 (file)
  * published by the Free Software Foundation.
  */
 
-/*
- * PXA250/210 timer
- */
-#define CLOCK_TICK_RATE                3686400
-#define CLOCK_TICK_FACTOR      80
+#include <linux/config.h>
+
+#if defined(CONFIG_PXA25x)
+/* PXA250/210 timer base */
+#define CLOCK_TICK_RATE 3686400
+#elif defined(CONFIG_PXA27x)
+/* PXA27x timer base */
+#ifdef CONFIG_MACH_MAINSTONE
+#define CLOCK_TICK_RATE 3249600
+#else
+#define CLOCK_TICK_RATE 3250000
+#endif
+#endif