Staging
v0.7.0
https://github.com/torvalds/linux
Raw File
Tip revision: 9fa7eb283c5cdc2b0f4a8cfe6387ed82e5e9a3d3 authored by Linus Torvalds on 03 June 2009, 03:07:25 UTC
Linux 2.6.30-rc8
Tip revision: 9fa7eb2
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