Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/arch/mips/jz4740/pwm.c b/arch/mips/jz4740/pwm.c
- index 9c5e5b9..e7a5623 100644
- --- a/arch/mips/jz4740/pwm.c
- +++ b/arch/mips/jz4740/pwm.c
- @@ -128,6 +128,10 @@ int pwm_config(struct pwm_device *pwm, int duty_ns, int period_ns)
- do_div(tmp, period_ns);
- duty = tmp;
- + printk("pwm: %d %d %u %lu %lu\n", duty_ns, period_ns, prescaler, period, duty);
- +
- + jz4740_timer_set_ctrl(id, 0);
- +
- jz4740_timer_set_duty(id, duty);
- jz4740_timer_set_period(id, period);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement