linux/drivers/pwm
Axel Lin 08ee77b5a5 pwm: lpc32xx: Properly set PWM_ENABLE bit in lpc32xx_pwm_[enable|disable]
According to the LPC32x0 User Manual [1]:

For both PWM1 and PWM2 Control Registers:
BIT 31:
This bit gates the PWM_CLK signal and enables the external output pin
to the PWM_PIN_STATE logical level.

0 = PWM disabled. (Default)
1 = PWM enabled

So in lpc32xx_pwm_enable(), we should set PWM_ENABLE bit.
In lpc32xx_pwm_disable(), we should just clear PWM_ENABLE bit rather than
write 0 to the register which will also clear PWMx_RELOADV and PWMx_DUTY bits.

[1] http://www.nxp.com/documents/user_manual/UM10326.pdf

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Tested-by: Roland Stigge <stigge@antcom.de>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
2013-04-23 10:58:35 +02:00
..
Kconfig pwm: davinci: Add Kconfig support for ECAP & EHRPWM devices 2013-03-22 11:35:20 +01:00
Makefile pwm: atmel: add Timer Counter Block PWM driver 2013-01-08 16:52:10 +01:00
core.c pwm: Changes for v3.9-rc1 2013-02-26 09:34:29 -08:00
pwm-ab8500.c pwm: ab8500: Add .owner to struct pwm_ops 2013-04-02 11:29:11 +02:00
pwm-atmel-tcb.c pwm: atmel-tcb: Add .owner to struct pwm_ops 2013-04-02 11:29:22 +02:00
pwm-bfin.c pwm: remove use of __devexit 2012-11-28 12:23:41 -08:00
pwm-imx.c pwm: imx: Remove enabled field from struct imx_chip 2013-04-02 11:30:57 +02:00
pwm-jz4740.c pwm: remove use of __devexit 2012-11-28 12:23:41 -08:00
pwm-lpc32xx.c pwm: lpc32xx: Properly set PWM_ENABLE bit in lpc32xx_pwm_[enable|disable] 2013-04-23 10:58:35 +02:00
pwm-mxs.c pwm: Constify OF match tables 2013-04-23 07:42:20 +02:00
pwm-puv3.c pwm: puv3: Remove unused enabled filed from struct puv3_pwm_chip 2013-04-02 11:40:18 +02:00
pwm-pxa.c pwm: pxa: Remove PWM_ID_BASE macro 2013-04-02 11:40:17 +02:00
pwm-samsung.c pwm: samsung: convert s3c_pwm to dev_pm_ops 2013-03-08 08:30:55 +01:00
pwm-spear.c pwm: Constify OF match tables 2013-04-23 07:42:20 +02:00
pwm-tegra.c pwm: Constify OF match tables 2013-04-23 07:42:20 +02:00
pwm-tiecap.c pwm: tiecap: Staticize non-exported symbols 2013-03-26 16:04:03 +01:00
pwm-tiehrpwm.c pwm: tiehrpwm: Staticize non-exported symbols 2013-03-26 16:04:03 +01:00
pwm-tipwmss.c pwm: pwm-tipwmss: add CONFIG_PM_SLEEP to suspend/resume functions 2013-03-11 08:28:22 +01:00
pwm-tipwmss.h pwm: davinci: Add Kconfig support for ECAP & EHRPWM devices 2013-03-22 11:35:20 +01:00
pwm-twl-led.c pwm: Constify OF match tables 2013-04-23 07:42:20 +02:00
pwm-twl.c pwm: Constify OF match tables 2013-04-23 07:42:20 +02:00
pwm-vt8500.c pwm: Changes for v3.9-rc1 2013-02-26 09:34:29 -08:00