pwm: Add PWM driver for OMAP using dual-mode timers
authorNeil Armstrong <narmstrong@baylibre.com>
Mon, 2 Nov 2015 11:14:21 +0000 (12:14 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 16 Dec 2015 16:25:37 +0000 (17:25 +0100)
commit6604c6556db9e41c85f2839f66bd9d617bcf9f87
treedf8c02d08ed1d824c158ead4c10999b295b652ae
parent72c16a9f98afad073b4a9c947c1c89bfb886ffcb
pwm: Add PWM driver for OMAP using dual-mode timers

Adds support for using a OMAP dual-mode timer with PWM capability
as a Linux PWM device. The driver controls the timer by using the
dmtimer API.

Add a platform_data structure for each pwm-omap-dmtimer nodes containing
the dmtimers functions in order to get driver not rely on platform
specific functions.

Cc: Grant Erickson <marathon96@gmail.com>
Cc: NeilBrown <neilb@suse.de>
Cc: Joachim Eastwood <manabian@gmail.com>
Suggested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Acked-by: Tony Lindgren <tony@atomide.com>
[thierry.reding@gmail.com: coding style bikeshed, fix timer leak]
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Documentation/devicetree/bindings/pwm/pwm-omap-dmtimer.txt [new file with mode: 0644]
drivers/pwm/Kconfig
drivers/pwm/Makefile
drivers/pwm/pwm-omap-dmtimer.c [new file with mode: 0644]
include/linux/platform_data/pwm_omap_dmtimer.h [new file with mode: 0644]