aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-atmel.c
Commit message (Collapse)AuthorAgeFilesLines
...
* pwm: atmel: Fix polarity handlingAlexandre Belloni2014-03-181-1/+6
| | | | | | | | | | | | | | | When atmel_pwm_config() calculates and then sets the prescaler, it is overwriting the channel's CMR register so we are losing the CPOL configuration. As atmel_pwm_config() is always called before enabling a channel, inverting the polarity doesn't work. Fix that by reading CMR first and only overwriting the prescaler bits. Signed-off-by: Alexandre Belloni <[email protected]> Acked-by: Nicolas Ferre <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
* pwm: atmel-pwm: Do not unprepare clock after successful registrationBo Shen2013-12-201-0/+2
| | | | | | | | When the PWM controller is registered successfully, the clock can not unprepare, so fix it. Signed-off-by: Bo Shen <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
* pwm: atmel-pwm: Add Atmel PWM controller driverBo Shen2013-12-171-0/+393
Add a PWM framework driver for the PWM controller found on Atmel SoCs. Signed-off-by: Bo Shen <[email protected]> Acked-by: Alexandre Belloni <[email protected]> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]> [thierry.reding: coding style and other minor cleanups] Signed-off-by: Thierry Reding <[email protected]>