kernel: modules: add PWM GPIO module
Some checks are pending
Build Kernel / Build all affected Kernels (push) Waiting to run
Build all core packages / Build all core packages for selected target (push) Waiting to run

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>
This commit is contained in:
Robert Marko 2025-09-25 11:18:56 +02:00 committed by Robert Marko
parent 0da0a6c449
commit 7f08a9c1db

View file

@ -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))