]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/commit
pwm: i.MX: use per clock unconditionally
authorSascha Hauer <s.hauer@pengutronix.de>
Tue, 28 Aug 2012 10:03:29 +0000 (12:03 +0200)
committerThierry Reding <thierry.reding@avionic-design.de>
Wed, 12 Sep 2012 12:25:06 +0000 (14:25 +0200)
commit8d1c24bfd20829f5943c76b85c4973db264dd666
tree1f2b14fe60d88e63dd8919683213014f64d52641
parent479e2e301c626cc64fb27b6b1938655eaba8b036
pwm: i.MX: use per clock unconditionally

The i.MX PWM module has two clocks: The ipg clock and the ipg highfreq
(peripheral) clock. The ipg clock has to be enabled for this hardware
to work. The actual PWM output can either be driven by the ipg clock
or the ipg highfreq. The ipg highfreq has the advantage that it runs
even when the SoC is in low power modes.
Use the always running clock also on i.MX25.

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