]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
pwm: NXP LPC18xx PWM/SCT driver
authorAriel D'Alessandro <ariel@vanguardiasur.com.ar>
Thu, 6 Aug 2015 02:31:46 +0000 (23:31 -0300)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 9 Sep 2015 13:00:33 +0000 (15:00 +0200)
commit841e6f90bb789a1372087b22c39f3a9ef2e02758
treef1c95b80f47c307f4263aa79c9578a3ea449231e
parent01ec8472009c973413d4dc6fb198f0cc40abb9b4
pwm: NXP LPC18xx PWM/SCT driver

This commit adds support for NXP LPC18xx PWM/SCT.

NXP LPC SoCs family, which includes LPC18xx/LPC43xx, provides a State
Configurable Timer (SCT) which can be configured as a Pulse Width
Modulator. Other SoCs in that family may share the same hardware.

The PWM supports a total of 16 channels, but only 15 can be simultaneously
requested. There's only one period, global to all the channels, thus PWM
driver will refuse setting different values to it, unless there's only one
channel requested.

Signed-off-by: Ariel D'Alessandro <ariel@vanguardiasur.com.ar>
[thierry.reding@gmail.com: remove excessive padding of fields]
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/Kconfig
drivers/pwm/Makefile
drivers/pwm/pwm-lpc18xx-sct.c [new file with mode: 0644]