ARM: OMAP: Add clocksource driver for OMAP1 and OMAP2
Subsystems (4)
PATCH 1/1 ARM: OMAP: Add clocksource driver for OMAP1 and OMAP2
Add clocksource driver for OMAP.
This is an update of
http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=3876/1
from Daniel Walker and Kevin Hilman.
Changes from Dirk Behme:
- Apply cleanly to recent git (pt_regs change)
- Move clocksource init to extra function. Can be called later by clocksource subsystem
- Remove warning arch/arm/plat-omap/timer32k.c:216: warning:
'omap_32k_timer_handler' defined but not used if CONFIG_NO_IDLE_HZ isn't set.
- Minor cleanups
Changes from David Brownell:
- OMAP1 MPU timer:
* consult clock framework to determine xtal clock
* use timer1 as a real free-running clock
- OMAP2 GP timer
* use timer2 as a real free-running clock
- Both: minor cleanups
- Kconfig updates
arch/arm/plat-omap/Kconfig +2 -0
@@ -125,6 +125,7 @@ choice config OMAP_MPU_TIMER bool "Use mpu timer" + select GENERIC_TIME help Select this option if you want to use the OMAP mpu timer. This timer provides more intra-tick resolution than the 32KHz timer,
@@ -133,6 +134,7 @@ config OMAP_MPU_TIMER config OMAP_32K_TIMER bool "Use 32KHz timer" depends on ARCH_OMAP16XX || ARCH_OMAP24XX + select GENERIC_TIME help Select this option if you want to enable the OMAP 32KHz timer. This timer saves power compared to the OMAP_MPU_TIMER, and has
arch/arm/mach-omap1/time.c +45 -111
209 lines not on this page · raw message
arch/arm/plat-omap/timer32k.c +51 -24
125 lines not on this page · raw message
arch/arm/mach-omap2/timer-gp.c +40 -7
77 lines not on this page · raw message