Advertisement
Guest User

Untitled

a guest
Jun 4th, 2015
476
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. diff --git a/drivers/pwm/pwm-imx.c b/drivers/pwm/pwm-imx.c
  2. index 66d6f0c..aa8fddb 100644
  3. --- a/drivers/pwm/pwm-imx.c
  4. +++ b/drivers/pwm/pwm-imx.c
  5. @@ -40,6 +40,7 @@
  6. #define MX3_PWMCR_DBGEN (1 << 22)
  7. #define MX3_PWMCR_CLKSRC_IPG_HIGH (2 << 16)
  8. #define MX3_PWMCR_CLKSRC_IPG (1 << 16)
  9. +#define MX3_PWMCR_REPEAT_4 (2 << 1)
  10. #define MX3_PWMCR_SWR (1 << 3)
  11. #define MX3_PWMCR_EN (1 << 0)
  12. #define MX3_PWMSR_FIFOAV_4WORDS 0x4
  13. @@ -174,7 +175,8 @@ static int imx_pwm_config_v2(struct pwm_chip *chip,
  14.  
  15. cr = MX3_PWMCR_PRESCALER(prescale) |
  16. MX3_PWMCR_DOZEEN | MX3_PWMCR_WAITEN |
  17. - MX3_PWMCR_DBGEN | MX3_PWMCR_CLKSRC_IPG_HIGH;
  18. + MX3_PWMCR_DBGEN | MX3_PWMCR_CLKSRC_IPG_HIGH |
  19. + MX3_PWMCR_REPEAT_4;
  20.  
  21. if (enable)
  22. cr |= MX3_PWMCR_EN;
  23. --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement