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)
commitdaa5629b21a1e59ed0ef9515a9e791d2f75cc5ca
tree84a99183412d95253d77cf4f6d25e7f05677a94a
parent454870a44b0687675180506b7774fb559d610675
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