Add linux-next specific files for 20110831
[linux-2.6/next.git] / arch / arm / mach-pxa / include / mach / timex.h
blobaf6760a50e1ab6a82996b8155bdd088cb8827eb6
1 /*
2 * arch/arm/mach-pxa/include/mach/timex.h
4 * Author: Nicolas Pitre
5 * Created: Jun 15, 2001
6 * Copyright: MontaVista Software Inc.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
13 /* Various drivers are still using the constant of CLOCK_TICK_RATE, for
14 * those drivers to at least work, the definition is provided here.
16 * NOTE: this is no longer accurate when multiple processors and boards
17 * are selected, newer drivers should not depend on this any more. Use
18 * either the clocksource/clockevent or get this at run-time by calling
19 * get_clock_tick_rate() (as defined in generic.c).
22 #if defined(CONFIG_PXA25x)
23 /* PXA250/210 timer base */
24 #define CLOCK_TICK_RATE 3686400
25 #elif defined(CONFIG_PXA27x)
26 /* PXA27x timer base */
27 #ifdef CONFIG_MACH_MAINSTONE
28 #define CLOCK_TICK_RATE 3249600
29 #else
30 #define CLOCK_TICK_RATE 3250000
31 #endif
32 #else
33 #define CLOCK_TICK_RATE 3250000
34 #endif