Skip to content

Commit

Permalink
sh: CMT clockevent platform driver
Browse files Browse the repository at this point in the history
SuperH CMT clockevent driver.

Both 16-bit and 32-bit CMT versions are supported, but only 32-bit
is tested. This driver contains support for both clockevents and
clocksources, but no unregistration is supported at this point.

Works fine as clock source and/or event in periodic or oneshot mode.
Tested on sh7722 and sh7723, but should work with any cpu/architecture.

This version is lacking clocksource and early platform driver support
for now - this to minimize the amount of dependencies.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Magnus Damm authored and Paul Mundt committed Jan 29, 2009
1 parent 07821d3 commit 3fb1b6a
Show file tree
Hide file tree
Showing 4 changed files with 637 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arch/sh/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,14 @@ source "arch/sh/boards/Kconfig"

menu "Timer and clock configuration"

config SH_TIMER_CMT
def_bool n
prompt "CMT support"
select GENERIC_TIME
select GENERIC_CLOCKEVENTS
help
This enables build of the CMT system timer driver.

config SH_TMU
def_bool y
prompt "TMU timer support"
Expand Down
1 change: 1 addition & 0 deletions drivers/clocksource/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ obj-$(CONFIG_ATMEL_TCB_CLKSRC) += tcb_clksrc.o
obj-$(CONFIG_X86_CYCLONE_TIMER) += cyclone.o
obj-$(CONFIG_X86_PM_TIMER) += acpi_pm.o
obj-$(CONFIG_SCx200HR_TIMER) += scx200_hrt.o
obj-$(CONFIG_SH_TIMER_CMT) += sh_cmt.o
Loading

0 comments on commit 3fb1b6a

Please sign in to comment.