Commit ce138cb4 authored by Vasily Khoruzhick's avatar Vasily Khoruzhick Committed by Jagan Teki

pwm: sunxi: use new prescaler when configuring PWM

Looks like old prescaler was used when configuring PWM, fix it.
Signed-off-by: default avatarVasily Khoruzhick <>
Acked-by: Maxime Ripard's avatarMaxime Ripard <>
Reviewed-by: default avatarJagan Teki <>
parent a877d4b1
......@@ -97,7 +97,7 @@ static int sunxi_pwm_set_config(struct udevice *dev, uint channel,
writel(v, &regs->ctrl);
v |= (priv->prescaler & SUNXI_PWM_CTRL_PRESCALE0_MASK);
v |= (prescaler & SUNXI_PWM_CTRL_PRESCALE0_MASK);
writel(v, &regs->ctrl);
writel(v, &regs->ctrl);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment