diff options
author | Claudio Mignanti <c.mignanti@gmail.com> | 2010-07-19 21:14:24 +0000 |
---|---|---|
committer | Claudio Mignanti <c.mignanti@gmail.com> | 2010-07-19 21:14:24 +0000 |
commit | 861c6988fb2093117e11638ee369c75b6720f9e3 (patch) | |
tree | aed6fe9223ff0c795a2414a7d9109d13e163a581 /package/kernel | |
parent | df0e3483acf444e0768917bb4d4c3bbcde71e1b8 (diff) | |
download | master-187ad058-861c6988fb2093117e11638ee369c75b6720f9e3.tar.gz master-187ad058-861c6988fb2093117e11638ee369c75b6720f9e3.tar.bz2 master-187ad058-861c6988fb2093117e11638ee369c75b6720f9e3.zip |
[kernel] pwm: export the generic pwm api as module
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22297 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel')
-rw-r--r-- | package/kernel/modules/other.mk | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/package/kernel/modules/other.mk b/package/kernel/modules/other.mk index 3781cbe329..b61b529c75 100644 --- a/package/kernel/modules/other.mk +++ b/package/kernel/modules/other.mk @@ -679,11 +679,26 @@ endef $(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 SUBMENU:=$(OTHER_MENU) TITLE:=PWM over GPIO - KCONFIG:=CONFIG_GENERIC_PWM \ - CONFIG_GPIO_PWM + DEPENDS:=+kmod-pwm + KCONFIG:=CONFIG_GPIO_PWM FILES:=$(LINUX_DIR)/drivers/pwm/gpio-pwm.ko AUTOLOAD:=$(call AutoLoad,51,gpio-pwm) endef |