linux-sg2042/drivers/pwm
Alexandre Belloni 916030db43 pwm: atmel: correct CDTY calculation
From the datasheet, the actual duty cycle is:

	(period - (1 / clk) * CDTY) / period

This actually correct the polarity of the PWM and solves the issue that
pwm-leds exhibits: when setting a duty cycle of 0 and then disabling a
channel, the level was wrong (1 when the polarity was normal and 0 when
the polarity was inversed).

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
2014-03-18 20:47:48 +01:00
..
Kconfig pwm: Add Freescale FTM PWM driver support 2014-03-18 18:01:56 +01:00
Makefile pwm: Add Freescale FTM PWM driver support 2014-03-18 18:01:56 +01:00
core.c pwm: use seq_puts() instead of seq_printf() 2013-12-20 10:53:41 +01: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: fix max time computation for slow clk source 2013-09-19 14:04:32 +02:00
pwm-atmel.c pwm: atmel: correct CDTY calculation 2014-03-18 20:47:48 +01:00
pwm-bfin.c pwm: Fill in missing .owner fields 2013-06-12 13:18:29 +02:00
pwm-ep93xx.c pwm: ep93xx: split module author names 2013-12-20 10:53:50 +01:00
pwm-fsl-ftm.c pwm: Add Freescale FTM PWM driver support 2014-03-18 18:01:56 +01:00
pwm-imx.c pwm: imx: Remove redundant of_match_ptr 2013-10-08 15:49:38 +02:00
pwm-jz4740.c pwm: jz4740: Use devm_clk_get() 2013-12-12 13:23:23 +01:00
pwm-lp3943.c pwm: Add LP3943 PWM driver 2014-01-21 08:28:00 +00:00
pwm-lpc32xx.c pwm: lpc32xx: Remove redundant of_match_ptr 2013-10-08 15:49:19 +02:00
pwm-mxs.c pwm: mxs: Remove redundant of_match_ptr 2013-10-08 15:49:10 +02:00
pwm-pca9685.c pwm: pca9685: Fix wrong argument to set MODE1_SLEEP bit 2013-06-26 23:23:54 +02:00
pwm-puv3.c pwm: Fill in missing .owner fields 2013-06-12 13:18:29 +02:00
pwm-pxa.c pwm: pxa: Use of_match_ptr() 2014-02-26 16:14:57 +01:00
pwm-renesas-tpu.c pwm: simplify use of devm_ioremap_resource 2013-09-03 13:09:16 +02:00
pwm-samsung.c pwm: samsung: Use SIMPLE_DEV_PM_OPS macro 2014-02-26 16:14:57 +01:00
pwm-spear.c pwm: simplify use of devm_ioremap_resource 2013-09-03 13:09:16 +02:00
pwm-tegra.c pwm: Fill in missing .owner fields 2013-06-12 13:18:29 +02:00
pwm-tiecap.c pwm: tiecap: Remove duplicate put_sync call 2014-01-23 15:19:18 +01:00
pwm-tiehrpwm.c pwm: tiehrpwm: use dev_err() instead of pr_err() 2013-12-20 11:03:17 +01:00
pwm-tipwmss.c drivers/pwm: don't check resource with devm_ioremap_resource 2013-05-18 11:55:58 +02: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: twl-led: Include linux/of.h header 2013-10-08 15:45:44 +02:00
pwm-twl.c pwm: twl: Include linux/of.h header 2013-10-08 15:45:44 +02:00
pwm-vt8500.c drivers/pwm: don't check resource with devm_ioremap_resource 2013-05-18 11:55:58 +02:00
sysfs.c pwm: sysfs: Convert to use ATTRIBUTE_GROUPS macro 2013-12-04 11:35:28 +01:00