timex.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * arch/arm/mach-pxa/include/mach/timex.h
  3. *
  4. * Author: Nicolas Pitre
  5. * Created: Jun 15, 2001
  6. * Copyright: MontaVista Software Inc.
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. /* Various drivers are still using the constant of CLOCK_TICK_RATE, for
  13. * those drivers to at least work, the definition is provided here.
  14. *
  15. * NOTE: this is no longer accurate when multiple processors and boards
  16. * are selected, newer drivers should not depend on this any more. Use
  17. * either the clocksource/clockevent or get this at run-time by calling
  18. * get_clock_tick_rate() (as defined in generic.c).
  19. */
  20. #if defined(CONFIG_PXA25x)
  21. /* PXA250/210 timer base */
  22. #define CLOCK_TICK_RATE 3686400
  23. #elif defined(CONFIG_PXA27x)
  24. /* PXA27x timer base */
  25. #ifdef CONFIG_MACH_MAINSTONE
  26. #define CLOCK_TICK_RATE 3249600
  27. #else
  28. #define CLOCK_TICK_RATE 3250000
  29. #endif
  30. #else
  31. #define CLOCK_TICK_RATE 3250000
  32. #endif