diff options
author | Paul Cercueil <paul@crapouillou.net> | 2019-06-07 18:44:09 +0300 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2019-06-26 12:39:05 +0300 |
commit | 6580fd173070a3a494d94b40d7ca5e5a815fe29a (patch) | |
tree | 2b0880eb21aa067eaeb001f303a1e399edbe6f37 /drivers/pwm/pwm-meson.c | |
parent | 1ac99c58bda9b911d6e47ed6d4d04a2b00ff703b (diff) | |
download | linux-6580fd173070a3a494d94b40d7ca5e5a815fe29a.tar.xz |
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-meson.c')
0 files changed, 0 insertions, 0 deletions