Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333096
b: refs/heads/master
c: 8d1c24b
h: refs/heads/master
v: v3
  • Loading branch information
Sascha Hauer authored and Thierry Reding committed Sep 12, 2012
1 parent 50b6d34 commit a02475b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 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: 479e2e301c626cc64fb27b6b1938655eaba8b036
refs/heads/master: 8d1c24bfd20829f5943c76b85c4973db264dd666
8 changes: 1 addition & 7 deletions trunk/drivers/pwm/pwm-imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <linux/io.h>
#include <linux/pwm.h>
#include <linux/of_device.h>
#include <mach/hardware.h>

/* i.MX1 and i.MX21 share the same PWM function block: */

Expand Down Expand Up @@ -133,16 +132,11 @@ static int imx_pwm_config_v2(struct pwm_chip *chip,

cr = MX3_PWMCR_PRESCALER(prescale) |
MX3_PWMCR_DOZEEN | MX3_PWMCR_WAITEN |
MX3_PWMCR_DBGEN;
MX3_PWMCR_DBGEN | MX3_PWMCR_CLKSRC_IPG_HIGH;

if (imx->enabled)
cr |= MX3_PWMCR_EN;

if (cpu_is_mx25())
cr |= MX3_PWMCR_CLKSRC_IPG;
else
cr |= MX3_PWMCR_CLKSRC_IPG_HIGH;

writel(cr, imx->mmio_base + MX3_PWMCR);

return 0;
Expand Down

0 comments on commit a02475b

Please sign in to comment.