diff options
| author | Sudeep Holla <sudeep.holla@arm.com> | 2015-05-18 11:29:40 -0400 |
|---|---|---|
| committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-06-02 04:58:18 -0400 |
| commit | 0b7402dce445ba0d11401c2cb806e8fc260c9e49 (patch) | |
| tree | 0874f7fb02dd4707840eece7ade0b61628041ae6 /include/clocksource | |
| parent | 1e5f0519f4cbf8b8830b88039e16222f186a4ab4 (diff) | |
ARM: 8366/1: move Dual-Timer SP804 driver to drivers/clocksource
The ARM Dual-Timer SP804 module is peripheral found not only on ARM32
platforms but also on ARM64 platforms.
This patch moves the driver out of arch/arm to driver/clocksource
so that it can be used on ARM64 platforms also.
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Rob Herring <robh@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Olof Johansson <olof@lixom.net>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/clocksource')
| -rw-r--r-- | include/clocksource/timer-sp804.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/include/clocksource/timer-sp804.h b/include/clocksource/timer-sp804.h new file mode 100644 index 000000000000..1f8a1caa7cb4 --- /dev/null +++ b/include/clocksource/timer-sp804.h | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | #ifndef __CLKSOURCE_TIMER_SP804_H | ||
| 2 | #define __CLKSOURCE_TIMER_SP804_H | ||
| 3 | |||
| 4 | struct clk; | ||
| 5 | |||
| 6 | void __sp804_clocksource_and_sched_clock_init(void __iomem *, | ||
| 7 | const char *, struct clk *, int); | ||
| 8 | void __sp804_clockevents_init(void __iomem *, unsigned int, | ||
| 9 | struct clk *, const char *); | ||
| 10 | void sp804_timer_disable(void __iomem *); | ||
| 11 | |||
| 12 | static inline void sp804_clocksource_init(void __iomem *base, const char *name) | ||
| 13 | { | ||
| 14 | __sp804_clocksource_and_sched_clock_init(base, name, NULL, 0); | ||
| 15 | } | ||
| 16 | |||
| 17 | static inline void sp804_clocksource_and_sched_clock_init(void __iomem *base, | ||
| 18 | const char *name) | ||
| 19 | { | ||
| 20 | __sp804_clocksource_and_sched_clock_init(base, name, NULL, 1); | ||
| 21 | } | ||
| 22 | |||
| 23 | static inline void sp804_clockevents_init(void __iomem *base, unsigned int irq, const char *name) | ||
| 24 | { | ||
| 25 | __sp804_clockevents_init(base, irq, NULL, name); | ||
| 26 | |||
| 27 | } | ||
| 28 | #endif | ||
