Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. diff --git a/arch/mips/jz4740/pwm.c b/arch/mips/jz4740/pwm.c
  2. index 9c5e5b9..e7a5623 100644
  3. --- a/arch/mips/jz4740/pwm.c
  4. +++ b/arch/mips/jz4740/pwm.c
  5. @@ -128,6 +128,10 @@ int pwm_config(struct pwm_device *pwm, int duty_ns, int period_ns)
  6. do_div(tmp, period_ns);
  7. duty = tmp;
  8.  
  9. + printk("pwm: %d %d %u %lu %lu\n", duty_ns, period_ns, prescaler, period, duty);
  10. +
  11. + jz4740_timer_set_ctrl(id, 0);
  12. +
  13. jz4740_timer_set_duty(id, duty);
  14. jz4740_timer_set_period(id, period);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement