timer-sp.h 695 B

1234567891011121314151617181920212223
  1. struct clk;
  2. void __sp804_clocksource_and_sched_clock_init(void __iomem *,
  3. const char *, struct clk *, int);
  4. void __sp804_clockevents_init(void __iomem *, unsigned int,
  5. struct clk *, const char *);
  6. static inline void sp804_clocksource_init(void __iomem *base, const char *name)
  7. {
  8. __sp804_clocksource_and_sched_clock_init(base, name, NULL, 0);
  9. }
  10. static inline void sp804_clocksource_and_sched_clock_init(void __iomem *base,
  11. const char *name)
  12. {
  13. __sp804_clocksource_and_sched_clock_init(base, name, NULL, 1);
  14. }
  15. static inline void sp804_clockevents_init(void __iomem *base, unsigned int irq, const char *name)
  16. {
  17. __sp804_clockevents_init(base, irq, NULL, name);
  18. }