pwm: pwm-tiecap: Disable APWM mode after configure
authorPhilip, Avinash <avinashphilip@ti.com>
Thu, 23 Aug 2012 06:59:46 +0000 (12:29 +0530)
committerThierry Reding <thierry.reding@avionic-design.de>
Mon, 10 Sep 2012 15:03:13 +0000 (17:03 +0200)
commitc06fad9d28c95b024ea10455cf1397432b12848d
treebce6aa75bb13e74de89dd803720dd7b32924c4fe
parentb817bf5c72774556345a9043c6b0c497cdcb7295
pwm: pwm-tiecap: Disable APWM mode after configure

APWM mode is enabled while configuring PWM device. This was done to
handle shadow & immediate mode update of period and compare registers.
However, leaving it enabled after configuring will cause APWM output on
PWM pin even before enabling PWM device.
Fix the same by disabling APWM mode after configuring if PWM device is
not running.

Signed-off-by: Philip, Avinash <avinashphilip@ti.com>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
drivers/pwm/pwm-tiecap.c