]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit85bc52f370b770aff2d7e9690ea03cfbdcb5d949
tree9168700089d50b4fafa3a2a0438f95aa0f22eccb
parent484ca0a5b77bd9b98e6f6c3f7d9bd7c8e710a5b4
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]