diff options
author | Paul Cercueil <paul@crapouillou.net> | 2019-06-07 17:44:09 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2019-06-26 11:39:05 +0200 |
commit | 6580fd173070a3a494d94b40d7ca5e5a815fe29a (patch) | |
tree | 2b0880eb21aa067eaeb001f303a1e399edbe6f37 /drivers/pwm/pwm-twl-led.c | |
parent | 1ac99c58bda9b911d6e47ed6d4d04a2b00ff703b (diff) | |
download | linux-stable-6580fd173070a3a494d94b40d7ca5e5a815fe29a.tar.gz linux-stable-6580fd173070a3a494d94b40d7ca5e5a815fe29a.tar.bz2 linux-stable-6580fd173070a3a494d94b40d7ca5e5a815fe29a.zip |
pwm: jz4740: Force TCU2 channels to return to their init level
When the PWM mode of TCU2 channels is disabled, their corresponding pin
does not always return to its initial level. Force this by using a small
trick: we set duty > period, which is an invalid configuration for the
hardware, which then correctly resets the pin to the initial level.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/pwm-twl-led.c')
0 files changed, 0 insertions, 0 deletions