diff options
author | Magnus Damm <damm@igel.co.jp> | 2009-04-30 11:02:49 +0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-05-03 12:36:02 +0400 |
commit | d5ed4c2e5ce9f5f6fd6a5a39ee1196a1f8a46eed (patch) | |
tree | 350f5a61bb75368a01f26ea2f0fa612b05cfc9bf /arch/sh/Kconfig | |
parent | 7563431107f6debf57c1dbecfb9498cf31a1c036 (diff) | |
download | linux-d5ed4c2e5ce9f5f6fd6a5a39ee1196a1f8a46eed.tar.xz |
clocksource: SuperH MTU2 Timer driver
This patch adds a MTU2 driver for the SuperH architecture.
The MTU2 driver is a platform driver with early platform
support to allow using a MTU2 channel as only clockevent
during system bootup.
Clocksource on sh2a is currently unsupported due to code
generation issues with 64-bit math, so at this point only
periodic clockevent support is in place.
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 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index 6f91478826d5..6d0dd378ecad 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig @@ -113,6 +113,9 @@ config SYS_SUPPORTS_PCI config SYS_SUPPORTS_CMT bool +config SYS_SUPPORTS_MTU2 + bool + config STACKTRACE_SUPPORT def_bool y @@ -478,6 +481,14 @@ config SH_MTU2 help This enables the use of the MTU2 as the system timer. +config SH_TIMER_MTU2 + bool "MTU2 timer driver" + depends on SYS_SUPPORTS_MTU2 && !SH_MTU2 + default y + select GENERIC_CLOCKEVENTS + help + This enables build of the MTU2 timer driver. + config SH_TIMER_IRQ int default "28" if CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785 || \ |