Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339921
b: refs/heads/master
c: 7b44cf2
h: refs/heads/master
i:
  339919: caf4057
v: v3
  • Loading branch information
Jon Hunter committed Nov 12, 2012
1 parent 5689996 commit fbedb69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 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: bfd6d021120d5994c4cc94d87ec03642be1540e7
refs/heads/master: 7b44cf2c15f81caf5c3a4ac59f0677edd64b9aeb
13 changes: 5 additions & 8 deletions trunk/arch/arm/plat-omap/dmtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,21 +121,16 @@ static void omap_dm_timer_wait_for_reset(struct omap_dm_timer *timer)

static void omap_dm_timer_reset(struct omap_dm_timer *timer)
{
omap_dm_timer_enable(timer);
if (timer->pdev->id != 1) {
omap_dm_timer_write_reg(timer, OMAP_TIMER_IF_CTRL_REG, 0x06);
omap_dm_timer_wait_for_reset(timer);
}

__omap_dm_timer_reset(timer, 0, 0);
__omap_dm_timer_enable_posted(timer);
omap_dm_timer_disable(timer);
}

int omap_dm_timer_prepare(struct omap_dm_timer *timer)
{
int ret;

/*
* FIXME: OMAP1 devices do not use the clock framework for dmtimers so
* do not call clk_get() for these devices.
Expand All @@ -149,13 +144,15 @@ int omap_dm_timer_prepare(struct omap_dm_timer *timer)
}
}

omap_dm_timer_enable(timer);

if (timer->capability & OMAP_TIMER_NEEDS_RESET)
omap_dm_timer_reset(timer);

ret = omap_dm_timer_set_source(timer, OMAP_TIMER_SRC_32_KHZ);
__omap_dm_timer_enable_posted(timer);
omap_dm_timer_disable(timer);

timer->posted = 1;
return ret;
return omap_dm_timer_set_source(timer, OMAP_TIMER_SRC_32_KHZ);
}

static inline u32 omap_dm_timer_reserved_systimer(int id)
Expand Down

0 comments on commit fbedb69

Please sign in to comment.