mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
pwm: sunxi: use new prescaler when configuring PWM
Looks like old prescaler was used when configuring PWM, fix it. Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> Acked-by: Maxime Ripard <maxime.ripard@bootlin.com> Reviewed-by: Jagan Teki <jagan@openedev.com>
This commit is contained in:
parent
a877d4b1ae
commit
ce138cb429
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ static int sunxi_pwm_set_config(struct udevice *dev, uint channel,
|
|||
v &= ~SUNXI_PWM_CTRL_CLK_GATE;
|
||||
writel(v, ®s->ctrl);
|
||||
v &= ~SUNXI_PWM_CTRL_PRESCALE0_MASK;
|
||||
v |= (priv->prescaler & SUNXI_PWM_CTRL_PRESCALE0_MASK);
|
||||
v |= (prescaler & SUNXI_PWM_CTRL_PRESCALE0_MASK);
|
||||
writel(v, ®s->ctrl);
|
||||
v |= SUNXI_PWM_CTRL_CLK_GATE;
|
||||
writel(v, ®s->ctrl);
|
||||
|
|
Loading…
Reference in a new issue