aboutsummaryrefslogtreecommitdiff
path: root/drivers/pwm/Kconfig
diff options
context:
space:
mode:
authorGravatar Alexandre Belloni <alexandre.belloni@free-electrons.com> 2014-03-14 15:19:09 +0100
committerGravatar Thierry Reding <thierry.reding@gmail.com> 2014-03-18 20:47:48 +0100
commit916030db4399f9237beef480fee6b11dd83cacd5 (patch)
treef290ef1a4c72a5d6d0c0aea11b43062ddf80cfaf /drivers/pwm/Kconfig
parentpwm: atmel: Fix polarity handling (diff)
downloadlinux-916030db4399f9237beef480fee6b11dd83cacd5.tar.gz
linux-916030db4399f9237beef480fee6b11dd83cacd5.tar.bz2
linux-916030db4399f9237beef480fee6b11dd83cacd5.zip
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>
Diffstat (limited to 'drivers/pwm/Kconfig')
0 files changed, 0 insertions, 0 deletions