]> git.baikalelectronics.ru Git - kernel.git/commit
pwm: jz4740: Make disable operation compatible with TCU2 mode
authorMaarten ter Huurne <maarten@treewalker.org>
Sat, 6 Jan 2018 16:58:40 +0000 (17:58 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Tue, 27 Mar 2018 22:22:03 +0000 (00:22 +0200)
commit052187153d1b03476c536f91208a4bf275c67294
treec0fc618f24474a7bfa1fc361985fb127560c1bb8
parent399998d5c9bfa7559ae26ec33ec3910d1dab8a29
pwm: jz4740: Make disable operation compatible with TCU2 mode

On the JZ4750 and later SoCs, channel 1 and 2 operate in a different
way (TCU2 mode) as the other channels. If a TCU2 mode counter is
stopped before its PWM functionality is disabled, the output is not
guaranteed to return to the initial level.

Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-jz4740.c