aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data/pwm-renesas-tpu.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-06-13 12:54:44 -0400
committerThierry Reding <thierry.reding@gmail.com>2013-06-21 05:33:28 -0400
commit99b82abb0a35b07310ea6334257829af168c8e08 (patch)
treee51f1e41fe8ed6164bee1e7bbd467ba159f624e4 /include/linux/platform_data/pwm-renesas-tpu.h
parent76abbdde2d95a3807d0dc6bf9f84d03d0dbd4f3d (diff)
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 <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Axel Lin <axel.lin@ingics.com> Tested-by: Simon Horman <horms@verge.net.au> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'include/linux/platform_data/pwm-renesas-tpu.h')
-rw-r--r--include/linux/platform_data/pwm-renesas-tpu.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/platform_data/pwm-renesas-tpu.h b/include/linux/platform_data/pwm-renesas-tpu.h
new file mode 100644
index 000000000000..a7220b10ddab
--- /dev/null
+++ b/include/linux/platform_data/pwm-renesas-tpu.h
@@ -0,0 +1,16 @@
1#ifndef __PWM_RENESAS_TPU_H__
2#define __PWM_RENESAS_TPU_H__
3
4#include <linux/pwm.h>
5
6#define TPU_CHANNEL_MAX 4
7
8struct tpu_pwm_channel_data {
9 enum pwm_polarity polarity;
10};
11
12struct tpu_pwm_platform_data {
13 struct tpu_pwm_channel_data channels[TPU_CHANNEL_MAX];
14};
15
16#endif /* __PWM_RENESAS_TPU_H__ */