summaryrefslogtreecommitdiff
path: root/drivers/pwm/Kconfig
diff options
context:
space:
mode:
authorWilliam Qiu <william.qiu@starfivetech.com>2023-12-22 12:45:46 +0300
committerEmil Renner Berthing <emil.renner.berthing@canonical.com>2024-05-28 13:42:20 +0300
commit4b8b81e7e33b8edb0f2d24a2ce98e39abe10b0fe (patch)
treeeb824d79935a5bd5a3a83006e46be539c67a7d42 /drivers/pwm/Kconfig
parent4c39335c9e50b9426b7cd6c896770e7e641b94ec (diff)
downloadlinux-4b8b81e7e33b8edb0f2d24a2ce98e39abe10b0fe.tar.xz
pwm: opencores: Add PWM driver support
Add driver for OpenCores PWM Controller. And add compatibility code which based on StarFive SoC. Co-developed-by: Hal Feng <hal.feng@starfivetech.com> Signed-off-by: Hal Feng <hal.feng@starfivetech.com> Signed-off-by: William Qiu <william.qiu@starfivetech.com> Link: https://lore.kernel.org/r/20231222094548.54103-3-william.qiu@starfivetech.com [esmil: delete chip->of_pwm_n_cells = 3 assignment, use devm_pwmchip_alloc()] Signed-off-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Diffstat (limited to 'drivers/pwm/Kconfig')
-rw-r--r--drivers/pwm/Kconfig12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig
index 1dd7921194f5..b1c08cf66b56 100644
--- a/drivers/pwm/Kconfig
+++ b/drivers/pwm/Kconfig
@@ -440,6 +440,18 @@ config PWM_NTXEC
controller found in certain e-book readers designed by the original
design manufacturer Netronix.
+config PWM_OCORES
+ tristate "OpenCores PWM support"
+ depends on HAS_IOMEM && OF
+ depends on COMMON_CLK
+ depends on ARCH_STARFIVE || COMPILE_TEST
+ help
+ If you say yes to this option, support will be included for the
+ OpenCores PWM. For details see https://opencores.org/projects/ptc.
+
+ To compile this driver as a module, choose M here: the module
+ will be called pwm-ocores.
+
config PWM_OMAP_DMTIMER
tristate "OMAP Dual-Mode Timer PWM support"
depends on OF