timer-sp804.h 813 B

12345678910111213141516171819202122232425262728
  1. #ifndef __CLKSOURCE_TIMER_SP804_H
  2. #define __CLKSOURCE_TIMER_SP804_H
  3. struct clk;
  4. void __sp804_clocksource_and_sched_clock_init(void __iomem *,
  5. const char *, struct clk *, int);
  6. void __sp804_clockevents_init(void __iomem *, unsigned int,
  7. struct clk *, const char *);
  8. void sp804_timer_disable(void __iomem *);
  9. static inline void sp804_clocksource_init(void __iomem *base, const char *name)
  10. {
  11. __sp804_clocksource_and_sched_clock_init(base, name, NULL, 0);
  12. }
  13. static inline void sp804_clocksource_and_sched_clock_init(void __iomem *base,
  14. const char *name)
  15. {
  16. __sp804_clocksource_and_sched_clock_init(base, name, NULL, 1);
  17. }
  18. static inline void sp804_clockevents_init(void __iomem *base, unsigned int irq, const char *name)
  19. {
  20. __sp804_clockevents_init(base, irq, NULL, name);
  21. }
  22. #endif