mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-03-14 23:09:45 +01:00
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>
This commit is contained in:
parent
0da0a6c449
commit
7f08a9c1db
1 changed files with 17 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue