ARM: 8365/1: introduce sp804_timer_disable and remove arm_timer.h inclusion
[firefly-linux-kernel-4.4.55.git] / arch / arm / include / asm / hardware / timer-sp.h
1 struct clk;
2
3 void __sp804_clocksource_and_sched_clock_init(void __iomem *,
4                                               const char *, struct clk *, int);
5 void __sp804_clockevents_init(void __iomem *, unsigned int,
6                               struct clk *, const char *);
7 void sp804_timer_disable(void __iomem *);
8
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
14 static inline void sp804_clocksource_and_sched_clock_init(void __iomem *base,
15                                                           const char *name)
16 {
17         __sp804_clocksource_and_sched_clock_init(base, name, NULL, 1);
18 }
19
20 static inline void sp804_clockevents_init(void __iomem *base, unsigned int irq, const char *name)
21 {
22         __sp804_clockevents_init(base, irq, NULL, name);
23
24 }