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)
commitdf56b1712d57863e9686673bb13803dcd8a82f7a
treec0fc618f24474a7bfa1fc361985fb127560c1bb8
parent1f6eefeb7cd45360397fb5d3f08ce9ec41e80b17
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