timex.h 429 字节
Newer Older
L
Linus Torvalds 已提交
1
/*
2
 * arch/arm/mach-ixp4xx/include/mach/timex.h
L
Linus Torvalds 已提交
3 4 5
 * 
 */

6
#include <mach/hardware.h>
L
Linus Torvalds 已提交
7 8 9

/*
 * We use IXP425 General purpose timer for our timer needs, it runs at 
10 11
 * 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.
L
Linus Torvalds 已提交
12
 */
13 14 15
#define IXP4XX_TIMER_FREQ 66666000
#define CLOCK_TICK_RATE \
	(((IXP4XX_TIMER_FREQ / HZ & ~IXP4XX_OST_RELOAD_MASK) + 1) * HZ)
L
Linus Torvalds 已提交
16