2005-04-16 16:20:36 -06:00
|
|
|
/*
|
2008-08-05 09:14:15 -06:00
|
|
|
* arch/arm/mach-pxa/include/mach/timex.h
|
2005-04-16 16:20:36 -06:00
|
|
|
*
|
|
|
|
* Author: Nicolas Pitre
|
|
|
|
* Created: Jun 15, 2001
|
|
|
|
* Copyright: MontaVista Software Inc.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
|
2008-12-17 20:10:32 -07:00
|
|
|
/* Various drivers are still using the constant of CLOCK_TICK_RATE, for
|
|
|
|
* those drivers to at least work, the definition is provided here.
|
|
|
|
*
|
|
|
|
* NOTE: this is no longer accurate when multiple processors and boards
|
|
|
|
* are selected, newer drivers should not depend on this any more. Use
|
|
|
|
* either the clocksource/clockevent or get this at run-time by calling
|
|
|
|
* get_clock_tick_rate() (as defined in generic.c).
|
|
|
|
*/
|
2005-04-16 16:20:36 -06:00
|
|
|
|
|
|
|
#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
|
2007-09-11 20:13:17 -06:00
|
|
|
#else
|
|
|
|
#define CLOCK_TICK_RATE 3250000
|
2005-04-16 16:20:36 -06:00
|
|
|
#endif
|