summaryrefslogtreecommitdiffstats
path: root/kernel/arch/arm/include/asm/hardware/timer-sp.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/arm/include/asm/hardware/timer-sp.h')
-rw-r--r--kernel/arch/arm/include/asm/hardware/timer-sp.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/kernel/arch/arm/include/asm/hardware/timer-sp.h b/kernel/arch/arm/include/asm/hardware/timer-sp.h
new file mode 100644
index 000000000..bb28af7c3
--- /dev/null
+++ b/kernel/arch/arm/include/asm/hardware/timer-sp.h
@@ -0,0 +1,23 @@
+struct clk;
+
+void __sp804_clocksource_and_sched_clock_init(void __iomem *,
+ const char *, struct clk *, int);
+void __sp804_clockevents_init(void __iomem *, unsigned int,
+ struct clk *, const char *);
+
+static inline void sp804_clocksource_init(void __iomem *base, const char *name)
+{
+ __sp804_clocksource_and_sched_clock_init(base, name, NULL, 0);
+}
+
+static inline void sp804_clocksource_and_sched_clock_init(void __iomem *base,
+ const char *name)
+{
+ __sp804_clocksource_and_sched_clock_init(base, name, NULL, 1);
+}
+
+static inline void sp804_clockevents_init(void __iomem *base, unsigned int irq, const char *name)
+{
+ __sp804_clockevents_init(base, irq, NULL, name);
+
+}