mirror of
https://github.com/buildwithparallel/openwrt
synced 2026-08-10 21:35:45 -04:00
This allows standard GPIOs to be controlled as PWM devices. Signed-off-by: Arien Judge <arien.judge@morsemicro.com> Approved-by: James Haggerty Approved-by: Evan Benn
19 lines
No EOL
468 B
Makefile
19 lines
No EOL
468 B
Makefile
OTHER_MENU:=Other modules
|
|
|
|
define KernelPackage/pwm-gpio
|
|
SUBMENU:=Other modules
|
|
TITLE:=PWM GPIO Support
|
|
KCONFIG:= \
|
|
CONFIG_PWM=y \
|
|
CONFIG_PWM_GPIO \
|
|
CONFIG_PWM_SYSFS=y
|
|
FILES:= \
|
|
$(LINUX_DIR)/drivers/pwm/pwm-gpio.ko
|
|
AUTOLOAD:=$(call AutoLoad,30,pwm-gpio)
|
|
endef
|
|
|
|
define KernelPackage/pwm-gpio/description
|
|
Generic PWM framework driver for a software PWM toggling a GPIO pin from kernel high-resolution timers.
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,pwm-gpio)) |