Skip to content

Commit 2bf7ecf

Browse files
ConchuODthierryreding
authored andcommitted
pwm: add microchip soft ip corePWM driver
Add a driver that supports the Microchip FPGA "soft" PWM IP core. Signed-off-by: Conor Dooley <[email protected]> Reviewed-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 38ba835 commit 2bf7ecf

File tree

3 files changed

+518
-0
lines changed

3 files changed

+518
-0
lines changed

drivers/pwm/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,16 @@ config PWM_MEDIATEK
405405
To compile this driver as a module, choose M here: the module
406406
will be called pwm-mediatek.
407407

408+
config PWM_MICROCHIP_CORE
409+
tristate "Microchip corePWM PWM support"
410+
depends on SOC_MICROCHIP_POLARFIRE || COMPILE_TEST
411+
depends on HAS_IOMEM && OF
412+
help
413+
PWM driver for Microchip FPGA soft IP core.
414+
415+
To compile this driver as a module, choose M here: the module
416+
will be called pwm-microchip-core.
417+
408418
config PWM_MXS
409419
tristate "Freescale MXS PWM support"
410420
depends on ARCH_MXS || COMPILE_TEST

drivers/pwm/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ obj-$(CONFIG_PWM_LPSS_PCI) += pwm-lpss-pci.o
3535
obj-$(CONFIG_PWM_LPSS_PLATFORM) += pwm-lpss-platform.o
3636
obj-$(CONFIG_PWM_MESON) += pwm-meson.o
3737
obj-$(CONFIG_PWM_MEDIATEK) += pwm-mediatek.o
38+
obj-$(CONFIG_PWM_MICROCHIP_CORE) += pwm-microchip-core.o
3839
obj-$(CONFIG_PWM_MTK_DISP) += pwm-mtk-disp.o
3940
obj-$(CONFIG_PWM_MXS) += pwm-mxs.o
4041
obj-$(CONFIG_PWM_NTXEC) += pwm-ntxec.o

0 commit comments

Comments
 (0)