ARM: OMAP: dmtimer: low-power mode support
authorTarun Kanti DebBarma <tarun.kanti@ti.com>
Tue, 20 Sep 2011 11:30:24 +0000 (17:00 +0530)
committerTony Lindgren <tony@atomide.com>
Thu, 22 Sep 2011 00:07:34 +0000 (17:07 -0700)
commitb481113a8af65f49afed46d4c9132b7af9426684
treef468369003b3d0e70342aee8d0cce6b1c637e1a7
parent0dad9faeaeb0fa3524068a94e1745b91e5597c17
ARM: OMAP: dmtimer: low-power mode support

Clock is enabled only when timer is started and disabled when the the timer
is stopped. Therefore before accessing registers in functions clock is enabled
and then disabled back at the end of access. Context save is done dynamically
whenever the registers are modified. Context restore is called when context is
lost.

Signed-off-by: Tarun Kanti DebBarma <tarun.kanti@ti.com>
Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
[tony@atomide.com: updated to use revision instead of tidr]
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/timer.c
arch/arm/plat-omap/dmtimer.c
arch/arm/plat-omap/include/plat/dmtimer.h