mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-28 14:11:29 +01:00
power: pwm_regulator: fix the pwm_set_config parameter order
The rkpwm reg order has fixed by below patch: e3ef41d rockchip: pwm: fix the register layout for the PWM controller We need to correct the parameter order for pwm_set_config() to make the pwm regulator works correctly. Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
This commit is contained in:
parent
7ba3182e2d
commit
f339bca248
@ -80,7 +80,7 @@ static int pwm_regulator_set_voltage(struct udevice *dev, int uvolt)
|
||||
}
|
||||
|
||||
ret = pwm_set_config(priv->pwm, priv->pwm_id,
|
||||
(priv->period_ns / 100) * duty_cycle, priv->period_ns);
|
||||
priv->period_ns, (priv->period_ns / 100) * duty_cycle);
|
||||
if (ret) {
|
||||
dev_err(dev, "Failed to configure PWM\n");
|
||||
return ret;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user