Skip to content

Commit 99b82ab

Browse files
Laurent Pinchartthierryreding
authored andcommitted
pwm: Add Renesas TPU PWM driver
The Timer Pulse Unit (TPU) is a 4-channels 16-bit timer used to generate waveforms. This driver exposes PWM functions through the PWM API for other drivers to use. The code is loosely based on the leds-renesas-tpu driver by Magnus Damm and the TPU PWM driver shipped in the Armadillo EVA 800 kernel sources. Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Axel Lin <[email protected]> Tested-by: Simon Horman <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 76abbdd commit 99b82ab

File tree

4 files changed

+502
-0
lines changed

4 files changed

+502
-0
lines changed

drivers/pwm/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,16 @@ config PWM_PXA
128128
To compile this driver as a module, choose M here: the module
129129
will be called pwm-pxa.
130130

131+
config PWM_RENESAS_TPU
132+
tristate "Renesas TPU PWM support"
133+
depends on ARCH_SHMOBILE
134+
help
135+
This driver exposes the Timer Pulse Unit (TPU) PWM controller found
136+
in Renesas chips through the PWM API.
137+
138+
To compile this driver as a module, choose M here: the module
139+
will be called pwm-renesas-tpu.
140+
131141
config PWM_SAMSUNG
132142
tristate "Samsung PWM support"
133143
depends on PLAT_SAMSUNG

drivers/pwm/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ obj-$(CONFIG_PWM_MXS) += pwm-mxs.o
1010
obj-$(CONFIG_PWM_PCA9685) += pwm-pca9685.o
1111
obj-$(CONFIG_PWM_PUV3) += pwm-puv3.o
1212
obj-$(CONFIG_PWM_PXA) += pwm-pxa.o
13+
obj-$(CONFIG_PWM_RENESAS_TPU) += pwm-renesas-tpu.o
1314
obj-$(CONFIG_PWM_SAMSUNG) += pwm-samsung.o
1415
obj-$(CONFIG_PWM_SPEAR) += pwm-spear.o
1516
obj-$(CONFIG_PWM_TEGRA) += pwm-tegra.o

0 commit comments

Comments
 (0)