clocksource: SuperH TMU Timer driver
This patch adds a TMU driver for the SuperH architecture.
The TMU driver is a platform driver with early platform
support to allow using a TMU channel as clockevent or
clocksource during system bootup or later.
Clocksource or clockevent can be selected.
Both periodic and oneshot clockevents are supported.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig
index bda3dc1..1f74737 100644
--- a/arch/sh/Kconfig
+++ b/arch/sh/Kconfig
@@ -116,6 +116,9 @@
config SYS_SUPPORTS_MTU2
bool
+config SYS_SUPPORTS_TMU
+ bool
+
config STACKTRACE_SUPPORT
def_bool y
@@ -470,6 +473,15 @@
help
This enables the use of the TMU as the system timer.
+config SH_TIMER_TMU
+ bool "TMU timer driver"
+ depends on !SH_TMU && SYS_SUPPORTS_TMU
+ default y
+ select GENERIC_TIME
+ select GENERIC_CLOCKEVENTS
+ help
+ This enables the build of the TMU timer driver.
+
config SH_TIMER_CMT
bool "CMT timer driver"
depends on SYS_SUPPORTS_CMT