Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 160862
b: refs/heads/master
c: 5ef881b
h: refs/heads/master
v: v3
  • Loading branch information
Sascha Hauer committed Aug 7, 2009
1 parent 5287904 commit dcfff78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 494f22dddc6308b9c35984118ff4cb1681ad8e48
refs/heads/master: 5ef881bbecc72862fa379cb286a50f2781db4cec
4 changes: 3 additions & 1 deletion trunk/arch/arm/plat-mxc/pwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ int pwm_config(struct pwm_device *pwm, int duty_ns, int period_ns)

writel(duty_cycles, pwm->mmio_base + MX3_PWMSAR);
writel(period_cycles, pwm->mmio_base + MX3_PWMPR);
writel(MX3_PWMCR_PRESCALER(prescale - 1) |
writel(MX3_PWMCR_PRESCALER(prescale) |
MX3_PWMCR_CLKSRC_IPG_HIGH | MX3_PWMCR_EN,
pwm->mmio_base + MX3_PWMCR);
} else if (cpu_is_mx1() || cpu_is_mx21()) {
Expand Down Expand Up @@ -118,6 +118,8 @@ EXPORT_SYMBOL(pwm_enable);

void pwm_disable(struct pwm_device *pwm)
{
writel(0, pwm->mmio_base + MX3_PWMCR);

if (pwm->clk_enabled) {
clk_disable(pwm->clk);
pwm->clk_enabled = 0;
Expand Down

0 comments on commit dcfff78

Please sign in to comment.