Skip to content

Commit

Permalink
clocksource: em_sti: Emma Mobile STI driver
Browse files Browse the repository at this point in the history
The STI hardware is based on a single 48-bit 32kHz
counter that together with two individual compare
registers can generate interrupts. There are no
timer operating modes selectable which means that
the timer can not clear on match.

This driver is providing clocksource support for the
48-bit counter. Clockevents are also supported using
the same timer in oneshot mode.

Signed-off-by: Magnus Damm <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/20120525070344.23443.69756.sendpatchset@w520
Signed-off-by: Thomas Gleixner <[email protected]>
  • Loading branch information
Magnus Damm authored and KAGA-KOKO committed May 25, 2012
1 parent e540032 commit b9dbf95
Show file tree
Hide file tree
Showing 3 changed files with 406 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/arm/mach-shmobile/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,12 @@ config SH_TIMER_TMU
help
This enables build of the TMU timer driver.

config EM_TIMER_STI
bool "STI timer driver"
default y
help
This enables build of the STI timer driver.

endmenu

config SH_CLK_CPG
Expand Down
1 change: 1 addition & 0 deletions drivers/clocksource/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ obj-$(CONFIG_CS5535_CLOCK_EVENT_SRC) += cs5535-clockevt.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
obj-$(CONFIG_EM_TIMER_STI) += em_sti.o
obj-$(CONFIG_CLKBLD_I8253) += i8253.o
obj-$(CONFIG_CLKSRC_MMIO) += mmio.o
obj-$(CONFIG_DW_APB_TIMER) += dw_apb_timer.o
Expand Down
Loading

0 comments on commit b9dbf95

Please sign in to comment.