pwm: i.MX: add functions to enable/disable pwm.
authorSascha Hauer <s.hauer@pengutronix.de>
Tue, 28 Aug 2012 09:39:25 +0000 (11:39 +0200)
committerThierry Reding <thierry.reding@avionic-design.de>
Wed, 12 Sep 2012 12:25:05 +0000 (14:25 +0200)
commit66ad6a613abeeeabc5217a0498fae63205e8ddb8
tree10990eefe667348983b32b0894a94cdbb7b1ba26
parent140827c148f2f3a95fdcec5310f6cd980139b383
pwm: i.MX: add functions to enable/disable pwm.

We used to enable/disable the PWM only by switching the
clock on or off. Instead, use the dedicated register bits.
These differ on different SoCs, so introduce a SoC specific
function for this.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Shawn Guo <shawn.guo@linaro.org>
Reviewed-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
drivers/pwm/pwm-imx.c