Skip to content

Commit

Permalink
Remove initial TCRR setting. Not important
Browse files Browse the repository at this point in the history
  • Loading branch information
Syntro committed May 23, 2012
1 parent e5d3be7 commit 3f2619a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions pwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,7 @@ static void pwm_set_frequency(struct pwm_dev *pd)

omap_dm_timer_set_load(pd->timer, 1, pd->tldr);

pd->num_settings = 0xFFFFFFFE - pd->tldr;

omap_dm_timer_enable(pd->timer);

// initialize TCRR to TLDR, have to start somewhere
omap_dm_timer_write_counter(pd->timer, pd->tldr);

omap_dm_timer_disable(pd->timer);
pd->num_settings = 0xFFFFFFFE - pd->tldr;
}

static void pwm_off(struct pwm_dev *pd)
Expand Down

0 comments on commit 3f2619a

Please sign in to comment.