1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-20 03:41:53 +02:00

[kernel] pwm: export the generic pwm api as module

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22297 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
claudio 2010-07-19 21:14:24 +00:00
parent 9fe2a2d554
commit dba337333d
2 changed files with 18 additions and 3 deletions

View File

@ -679,11 +679,26 @@ endef
$(eval $(call KernelPackage,wdt-scx200)) $(eval $(call KernelPackage,wdt-scx200))
define KernelPackage/pwm
SUBMENU:=$(OTHER_MENU)
TITLE:=PWM generic API
KCONFIG:=CONFIG_GENERIC_PWM
FILES:=$(LINUX_DIR)/drivers/pwm/pwm.ko
AUTOLOAD:=$(call AutoLoad,50,pwm)
endef
define KernelPackage/pwm/description
Kernel module that implement a generic PWM API
endef
$(eval $(call KernelPackage,pwm))
define KernelPackage/pwm-gpio define KernelPackage/pwm-gpio
SUBMENU:=$(OTHER_MENU) SUBMENU:=$(OTHER_MENU)
TITLE:=PWM over GPIO TITLE:=PWM over GPIO
KCONFIG:=CONFIG_GENERIC_PWM \ DEPENDS:=+kmod-pwm
CONFIG_GPIO_PWM KCONFIG:=CONFIG_GPIO_PWM
FILES:=$(LINUX_DIR)/drivers/pwm/gpio-pwm.ko FILES:=$(LINUX_DIR)/drivers/pwm/gpio-pwm.ko
AUTOLOAD:=$(call AutoLoad,51,gpio-pwm) AUTOLOAD:=$(call AutoLoad,51,gpio-pwm)
endef endef

View File

@ -1,6 +1,6 @@
# #
# Makefile for pwm devices # Makefile for pwm devices
# #
obj-y := pwm.o obj-$(CONFIG_GENERIC_PWM) := pwm.o
obj-$(CONFIG_ATMEL_PWM) += atmel-pwm.o obj-$(CONFIG_ATMEL_PWM) += atmel-pwm.o
obj-$(CONFIG_GPIO_PWM) += gpio-pwm.o obj-$(CONFIG_GPIO_PWM) += gpio-pwm.o