timex.h 400 B

123456789101112131415
  1. /*
  2. * arch/arm/mach-ixp4xx/include/mach/timex.h
  3. *
  4. */
  5. #include <mach/hardware.h>
  6. /*
  7. * We use IXP425 General purpose timer for our timer needs, it runs at
  8. * 66.66... MHz. We do a convulted calculation of CLOCK_TICK_RATE b/c the
  9. * timer register ignores the bottom 2 bits of the LATCH value.
  10. */
  11. #define FREQ 66666666
  12. #define CLOCK_TICK_RATE (((FREQ / HZ & ~IXP4XX_OST_RELOAD_MASK) + 1) * HZ)