Staging
v0.5.2
https://github.com/torvalds/linux
Raw File
Tip revision: 161291396e76e0832c08f617eb9bd364d1648148 authored by Linus Torvalds on 11 October 2009, 21:43:56 UTC
Linux 2.6.32-rc4
Tip revision: 1612913
timex.h
/*
 * arch/arm/mach-ixp4xx/include/mach/timex.h
 * 
 */

#include <mach/hardware.h>

/*
 * 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.
 */
#define FREQ 66666666
#define CLOCK_TICK_RATE (((FREQ / HZ & ~IXP4XX_OST_RELOAD_MASK) + 1) * HZ)

back to top