pwm: Add new pwm-samsung driver
authorTomasz Figa <tomasz.figa@gmail.com>
Sat, 6 Apr 2013 00:40:36 +0000 (02:40 +0200)
committerTomasz Figa <tomasz.figa@gmail.com>
Mon, 12 Aug 2013 19:53:22 +0000 (21:53 +0200)
commit11ad39ede24ee42909d58dc95031d96da46e33bd
tree3de054343ca1712338b7a2526d1bac460e0f6cb2
parent615c19e1607be1586aa2848712770423288c4f0e
pwm: Add new pwm-samsung driver

This patch introduces new Samsung PWM driver, which is completely
rewritten to be multiplatform- and DeviceTree-aware.

In addition, remaining problems of old driver are fixed, such as:
 - proper handling of hardware variants,
 - synchronization on SMP systems,
 - handling of boundary parameter values,
 - hardware sharing with PWM clocksource driver,
 - undefined state of PWM output after stopping PWM channel.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Mark Brown <broonie@linaro.org>
Tested-by: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/Makefile
drivers/pwm/pwm-samsung.c [new file with mode: 0644]
include/clocksource/samsung_pwm.h