Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/drivers/pwm/pwm-imx.c b/drivers/pwm/pwm-imx.c
- index 66d6f0c..aa8fddb 100644
- --- a/drivers/pwm/pwm-imx.c
- +++ b/drivers/pwm/pwm-imx.c
- @@ -40,6 +40,7 @@
- #define MX3_PWMCR_DBGEN (1 << 22)
- #define MX3_PWMCR_CLKSRC_IPG_HIGH (2 << 16)
- #define MX3_PWMCR_CLKSRC_IPG (1 << 16)
- +#define MX3_PWMCR_REPEAT_4 (2 << 1)
- #define MX3_PWMCR_SWR (1 << 3)
- #define MX3_PWMCR_EN (1 << 0)
- #define MX3_PWMSR_FIFOAV_4WORDS 0x4
- @@ -174,7 +175,8 @@ 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_CLKSRC_IPG_HIGH;
- + MX3_PWMCR_DBGEN | MX3_PWMCR_CLKSRC_IPG_HIGH |
- + MX3_PWMCR_REPEAT_4;
- if (enable)
- cr |= MX3_PWMCR_EN;
- --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement