rockchip: pwm: Fix default polarity
authorArnaud Patard (Rtp) <arnaud.patard@rtp-net.org>
Fri, 5 Mar 2021 10:27:51 +0000 (11:27 +0100)
committerAnatolij Gustschin <agust@denx.de>
Sat, 10 Apr 2021 09:54:59 +0000 (11:54 +0200)
commit4db3926874a6a17cca1f97a4fd92e58e9182a272
tree20a84e3c928ed7c0fd06218c7befb150825dcf00
parenta0c248ef0844da239096ecb4a83f9fa2b0535117
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>
drivers/pwm/rk_pwm.c