Skip to content

Commit

Permalink
clocksource: SuperH TMU Timer driver
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Paul Mundt <[email protected]>
  • Loading branch information
Magnus Damm authored and pmundt committed May 3, 2009
1 parent 3280c88 commit 9570ef2
Show file tree
Hide file tree
Showing 4 changed files with 487 additions and 0 deletions.
12 changes: 12 additions & 0 deletions arch/sh/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ config SYS_SUPPORTS_CMT
config SYS_SUPPORTS_MTU2
bool

config SYS_SUPPORTS_TMU
bool

config STACKTRACE_SUPPORT
def_bool y

Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions drivers/clocksource/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ obj-$(CONFIG_X86_PM_TIMER) += acpi_pm.o
obj-$(CONFIG_SCx200HR_TIMER) += scx200_hrt.o
obj-$(CONFIG_SH_TIMER_CMT) += sh_cmt.o
obj-$(CONFIG_SH_TIMER_MTU2) += sh_mtu2.o
obj-$(CONFIG_SH_TIMER_TMU) += sh_tmu.o
Loading

0 comments on commit 9570ef2

Please sign in to comment.