aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <noltari@gmail.com>2016-06-24 13:04:28 +0200
committerZoltan HERPAI <wigyori@uid0.hu>2016-06-24 13:04:28 +0200
commit2f3df65a63078a2e48a731f8a4b0f139b6176304 (patch)
tree059d689af1196d47f15c65fb40a27c0bb279325c /target
parent58648bec39764f08eb7bde96308373ca0df7cc41 (diff)
downloadmaster-187ad058-2f3df65a63078a2e48a731f8a4b0f139b6176304.tar.gz
master-187ad058-2f3df65a63078a2e48a731f8a4b0f139b6176304.tar.bz2
master-187ad058-2f3df65a63078a2e48a731f8a4b0f139b6176304.zip
ramips: add kmod-pwm-mediatek for mt7628/mt7688
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target')
-rw-r--r--target/linux/ramips/modules.mk22
1 files changed, 21 insertions, 1 deletions
diff --git a/target/linux/ramips/modules.mk b/target/linux/ramips/modules.mk
index 665dc41ae8..15017d01d9 100644
--- a/target/linux/ramips/modules.mk
+++ b/target/linux/ramips/modules.mk
@@ -1,11 +1,31 @@
#
-# Copyright (C) 2006-2012 OpenWrt.org
+# Copyright (C) 2006-2016 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
OTHER_MENU:=Other modules
+
+define KernelPackage/pwm-mediatek
+ SUBMENU:=Other modules
+ TITLE:=MT7628 PWM
+ DEPENDS:=@(TARGET_ramips_mt7628||TARGET_ramips_mt7688)
+ KCONFIG:= \
+ CONFIG_PWM=y \
+ CONFIG_PWM_MEDIATEK \
+ CONFIG_PWM_SYSFS=y
+ FILES:= \
+ $(LINUX_DIR)/drivers/pwm/pwm-mediatek.ko
+ AUTOLOAD:=$(call AutoProbe,pwm-mediatek)
+endef
+
+define KernelPackage/pwm-mediatek/description
+ Kernel modules for MediaTek Pulse Width Modulator
+endef
+
+$(eval $(call KernelPackage,pwm-mediatek))
+
define KernelPackage/sdhci-mt7620
SUBMENU:=Other modules
TITLE:=MT7620 SDCI