Staging
v0.7.0
https://github.com/torvalds/linux
Raw File
Tip revision: 29275254caedfedce960cfe6df24b90cb04fe431 authored by Linus Torvalds on 06 February 2010, 22:17:12 UTC
Linux 2.6.33-rc7
Tip revision: 2927525
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 66666000
#define CLOCK_TICK_RATE (((FREQ / HZ & ~IXP4XX_OST_RELOAD_MASK) + 1) * HZ)

back to top