aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Hunter <jon-hunter@ti.com>2012-07-06 17:46:35 -0400
committerJon Hunter <jon-hunter@ti.com>2012-11-12 17:23:52 -0500
commitffc957bd83b623fa6ead068bf1a444decce2cc00 (patch)
treeff9191fd99f44272bd096b827a53365f22e05d03
parent10759e823c83e6c88b58264daa791bb82c7ebad9 (diff)
ARM: OMAP: Fix dmtimer reset for timer1
In commit e32f7ec2 (ARM: OMAP: Fix 32 kHz timer and modify GP timer to use GPT1) a fix was added to prevent timer1 being reset in the function omap_dm_timer_reset() because timer1 was being used as the system timer for OMAP2 devices. Although timer1 is still used by most OMAP2+ devices as a system timer, the function omap_dm_timer_reset() is now only being called for OMAP1 devices and OMAP1 does not use timer1 as a system timer. Therefore, remove the check in omap_dm_timer_reset() so that timer1 is reset for OMAP1 devices. Signed-off-by: Jon Hunter <jon-hunter@ti.com> Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
-rw-r--r--arch/arm/plat-omap/dmtimer.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap/dmtimer.c
index 10ec31b8a3a2..d4f95410539f 100644
--- a/arch/arm/plat-omap/dmtimer.c
+++ b/arch/arm/plat-omap/dmtimer.c
@@ -121,11 +121,8 @@ static void omap_dm_timer_wait_for_reset(struct omap_dm_timer *timer)
121 121
122static void omap_dm_timer_reset(struct omap_dm_timer *timer) 122static void omap_dm_timer_reset(struct omap_dm_timer *timer)
123{ 123{
124 if (timer->pdev->id != 1) { 124 omap_dm_timer_write_reg(timer, OMAP_TIMER_IF_CTRL_REG, 0x06);
125 omap_dm_timer_write_reg(timer, OMAP_TIMER_IF_CTRL_REG, 0x06); 125 omap_dm_timer_wait_for_reset(timer);
126 omap_dm_timer_wait_for_reset(timer);
127 }
128
129 __omap_dm_timer_reset(timer, 0, 0); 126 __omap_dm_timer_reset(timer, 0, 0);
130} 127}
131 128