diff options
author | Magnus Damm <damm@igel.co.jp> | 2009-05-01 02:51:00 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-05-03 04:41:15 -0400 |
commit | 9570ef20423b549757aa484ad388f9a7d5bdc4d9 (patch) | |
tree | 900abba67f478327554307cb74e2683b632f3289 /arch/sh/Kconfig | |
parent | 3280c8865e1b738604bacdea54738acef31e8c12 (diff) |
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/Kconfig')
-rw-r--r-- | arch/sh/Kconfig | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index bda3dc1b0c26..1f74737c4f20 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig | |||
@@ -116,6 +116,9 @@ config SYS_SUPPORTS_CMT | |||
116 | config SYS_SUPPORTS_MTU2 | 116 | config SYS_SUPPORTS_MTU2 |
117 | bool | 117 | bool |
118 | 118 | ||
119 | config SYS_SUPPORTS_TMU | ||
120 | bool | ||
121 | |||
119 | config STACKTRACE_SUPPORT | 122 | config STACKTRACE_SUPPORT |
120 | def_bool y | 123 | def_bool y |
121 | 124 | ||
@@ -470,6 +473,15 @@ config SH_TMU | |||
470 | help | 473 | help |
471 | This enables the use of the TMU as the system timer. | 474 | This enables the use of the TMU as the system timer. |
472 | 475 | ||
476 | config SH_TIMER_TMU | ||
477 | bool "TMU timer driver" | ||
478 | depends on !SH_TMU && SYS_SUPPORTS_TMU | ||
479 | default y | ||
480 | select GENERIC_TIME | ||
481 | select GENERIC_CLOCKEVENTS | ||
482 | help | ||
483 | This enables the build of the TMU timer driver. | ||
484 | |||
473 | config SH_TIMER_CMT | 485 | config SH_TIMER_CMT |
474 | bool "CMT timer driver" | 486 | bool "CMT timer driver" |
475 | depends on SYS_SUPPORTS_CMT | 487 | depends on SYS_SUPPORTS_CMT |