diff options
| author | Robert Marko | 2025-09-25 09:18:56 +0000 |
|---|---|---|
| committer | Robert Marko | 2025-09-25 19:53:54 +0000 |
| commit | 7f08a9c1db29be4d36ec83c09a1f8cab5f433654 (patch) | |
| tree | 7109303fe0d09cdd54c8658e0a4ac4408de0ed4a | |
| parent | 0da0a6c449f965f12a18ca701cefac6b9bf67051 (diff) | |
| download | openwrt-7f08a9c1db29be4d36ec83c09a1f8cab5f433654.tar.gz | |
kernel: modules: add PWM GPIO module
Package the generic kernel PWM GPIO driver as module to avoid the need
to build it into the kernel.
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Link: https://github.com/openwrt/openwrt/pull/20160
Signed-off-by: Robert Marko <robimarko@gmail.com>
| -rw-r--r-- | package/kernel/linux/modules/gpio.mk | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/gpio.mk b/package/kernel/linux/modules/gpio.mk index fc6ab66ba8..11a92192f6 100644 --- a/package/kernel/linux/modules/gpio.mk +++ b/package/kernel/linux/modules/gpio.mk @@ -137,3 +137,20 @@ define KernelPackage/gpio-pcf857x/description endef $(eval $(call KernelPackage,gpio-pcf857x)) + + +define KernelPackage/gpio-pwm + SUBMENU:=$(GPIO_MENU) + DEPENDS:=@GPIO_SUPPORT @PWM_SUPPORT + TITLE:=PWM GPIO support + KCONFIG:=CONFIG_PWM_GPIO + FILES:=$(LINUX_DIR)/drivers/pwm/pwm-gpio.ko + AUTOLOAD:=$(call AutoProbe,pwm-gpio) +endef + +define KernelPackage/gpio-pwm/description + Generic PWM framework driver for software PWM toggling a GPIO pin from + kernel high-resolution timers. +endef + +$(eval $(call KernelPackage,gpio-pwm)) |