summaryrefslogtreecommitdiff
path: root/arch/sh
diff options
context:
space:
mode:
authorMagnus Damm <damm@igel.co.jp>2009-05-01 06:51:00 (GMT)
committerPaul Mundt <lethal@linux-sh.org>2009-05-03 08:41:15 (GMT)
commit9570ef20423b549757aa484ad388f9a7d5bdc4d9 (patch)
tree900abba67f478327554307cb74e2683b632f3289 /arch/sh
parent3280c8865e1b738604bacdea54738acef31e8c12 (diff)
downloadlinux-fsl-qoriq-9570ef20423b549757aa484ad388f9a7d5bdc4d9.tar.xz
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>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/Kconfig12
1 files changed, 12 insertions, 0 deletions
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_CMT
config SYS_SUPPORTS_MTU2
bool
+config SYS_SUPPORTS_TMU
+ bool
+
config STACKTRACE_SUPPORT
def_bool y
@@ -470,6 +473,15 @@ config SH_TMU
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