Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123740
b: refs/heads/master
c: 64ce290
h: refs/heads/master
v: v3
  • Loading branch information
Paul Walmsley authored and Tony Lindgren committed Dec 11, 2008
1 parent ebff1f4 commit 3d4c69e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a94b9e5a81d7f69297bb1681c5130a185e047f57
refs/heads/master: 64ce2907b1966593d3b4ce5396adb17d7348637d
7 changes: 4 additions & 3 deletions trunk/arch/arm/plat-omap/dmtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,14 +549,15 @@ void omap_dm_timer_set_load_start(struct omap_dm_timer *timer, int autoreload,
u32 l;

l = omap_dm_timer_read_reg(timer, OMAP_TIMER_CTRL_REG);
if (autoreload)
if (autoreload) {
l |= OMAP_TIMER_CTRL_AR;
else
omap_dm_timer_write_reg(timer, OMAP_TIMER_LOAD_REG, load);
} else {
l &= ~OMAP_TIMER_CTRL_AR;
}
l |= OMAP_TIMER_CTRL_ST;

omap_dm_timer_write_reg(timer, OMAP_TIMER_COUNTER_REG, load);
omap_dm_timer_write_reg(timer, OMAP_TIMER_LOAD_REG, load);
omap_dm_timer_write_reg(timer, OMAP_TIMER_CTRL_REG, l);
}

Expand Down

0 comments on commit 3d4c69e

Please sign in to comment.