]> git.baikalelectronics.ru Git - kernel.git/commit
pwm: pwm-tiehrpwm: Add support for configuring polarity of PWM
authorPhilip, Avinash <avinashphilip@ti.com>
Thu, 6 Sep 2012 05:10:03 +0000 (10:40 +0530)
committerThierry Reding <thierry.reding@avionic-design.de>
Mon, 10 Sep 2012 15:05:53 +0000 (17:05 +0200)
commit252f3a92d726060bb4a78695794ec01177746b0b
tree84a99183412d95253d77cf4f6d25e7f05677a94a
parente2b6119c4b99e7fb5756290ea147f595580986d4
pwm: pwm-tiehrpwm: Add support for configuring polarity of PWM

EHRPWM hardware supports polarity configuration of PWM output. However
configuration of polarity done in hardware only in .enable() to ensure
PWM output present only after enabling PWM. This commit adds support for
polarity configuration for EHRPWM.
When being here, remove configuring of polarity during .config() and do
it explicitly from .set_polarity().

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