aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/dmtimer.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-omap/dmtimer.c')
-rw-r--r--arch/arm/plat-omap/dmtimer.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap/dmtimer.c
index c25a1a6d2b03..bfccebc77515 100644
--- a/arch/arm/plat-omap/dmtimer.c
+++ b/arch/arm/plat-omap/dmtimer.c
@@ -147,9 +147,10 @@ static void omap_dm_timer_reset(struct omap_dm_timer *timer)
147{ 147{
148 u32 l; 148 u32 l;
149 149
150 omap_dm_timer_write_reg(timer, OMAP_TIMER_IF_CTRL_REG, 0x06); 150 if (timer != &dm_timers[0]) {
151 omap_dm_timer_wait_for_reset(timer); 151 omap_dm_timer_write_reg(timer, OMAP_TIMER_IF_CTRL_REG, 0x06);
152 152 omap_dm_timer_wait_for_reset(timer);
153 }
153 omap_dm_timer_set_source(timer, OMAP_TIMER_SRC_SYS_CLK); 154 omap_dm_timer_set_source(timer, OMAP_TIMER_SRC_SYS_CLK);
154 155
155 /* Set to smart-idle mode */ 156 /* Set to smart-idle mode */
@@ -335,7 +336,7 @@ void omap_dm_timer_set_source(struct omap_dm_timer *timer, int source)
335 336
336 /* When the functional clock disappears, too quick writes seem to 337 /* When the functional clock disappears, too quick writes seem to
337 * cause an abort. */ 338 * cause an abort. */
338 udelay(50); 339 __delay(15000);
339} 340}
340 341
341#endif 342#endif