diff options
author | Arnaud Patard (Rtp) <arnaud.patard@rtp-net.org> | 2021-03-05 11:27:51 +0100 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2021-04-10 11:54:59 +0200 |
commit | 4db3926874a6a17cca1f97a4fd92e58e9182a272 (patch) | |
tree | 20a84e3c928ed7c0fd06218c7befb150825dcf00 /drivers/pwm | |
parent | a0c248ef0844da239096ecb4a83f9fa2b0535117 (diff) | |
download | u-boot-4db3926874a6a17cca1f97a4fd92e58e9182a272.tar.gz u-boot-4db3926874a6a17cca1f97a4fd92e58e9182a272.tar.bz2 u-boot-4db3926874a6a17cca1f97a4fd92e58e9182a272.zip |
rockchip: pwm: Fix default polarity
In the code, the default polarity is set to positive/positive,
which is neither normal polarity or inverted polarity. It's
only the hardware default. This leads to booting linux with
wrong polarity setting.
Update the code to use PWM_DUTY_POSTIVE | PWM_INACTIVE_NEGATIVE
by default instead.
Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Tested-by: Peter Robinson <pbrobinson@gmail.com>
Diffstat (limited to 'drivers/pwm')
-rw-r--r-- | drivers/pwm/rk_pwm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/rk_pwm.c b/drivers/pwm/rk_pwm.c index 9cf0980345..071eb04fda 100644 --- a/drivers/pwm/rk_pwm.c +++ b/drivers/pwm/rk_pwm.c @@ -147,7 +147,7 @@ static int rk_pwm_probe(struct udevice *dev) priv->data = (struct rockchip_pwm_data *)dev_get_driver_data(dev); if (priv->data->supports_polarity) - priv->conf_polarity = PWM_DUTY_POSTIVE | PWM_INACTIVE_POSTIVE; + priv->conf_polarity = PWM_DUTY_POSTIVE | PWM_INACTIVE_NEGATIVE; return 0; } |