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>
This commit is contained in:
Robert Marko
2025-09-25 11:18:56 +02:00
parent cc923d69e3
commit bf32b0d9b3

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