pwm: Add MediaTek PWM support
authorJohn Crispin <john@phrozen.org>
Mon, 23 Jan 2017 18:34:37 +0000 (19:34 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 6 Apr 2017 15:45:04 +0000 (17:45 +0200)
commitcaf065f8fd583b43a3f95d84c8a0a0d07597963b
tree9168700089d50b4fafa3a2a0438f95aa0f22eccb
parent2ab15f580a874bf597c98acc16891bb9f95cb45c
pwm: Add MediaTek PWM support

This patch adds support for the PWM core found on current ARM base SoCs
made by MediaTek. This IP core supports 5 channels and has 2 operational
modes. There is the old mode, which is a classical PWM and the new mode
which allows the user to define bitmasks that get clocked out on the
pins. As the subsystem currently only supports PWM cores with the "old"
mode, we can safely ignore the "new" mode for now.

Signed-off-by: John Crispin <john@phrozen.org>
[thierry.reding@gmail.com: minor cleanups]
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/Kconfig
drivers/pwm/Makefile
drivers/pwm/pwm-mediatek.c [new file with mode: 0644]