ramips: add kmod-pwm-mediatek for mt7628/mt7688
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Fri, 3 Jun 2016 10:41:33 +0000 (12:41 +0200)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Fri, 3 Jun 2016 11:24:25 +0000 (13:24 +0200)
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
target/linux/ramips/modules.mk

index 665dc41ae8ba5c586475acd37010cc20938aae81..15017d01d9ff7f044506b89b912fd22bb73f3ff6 100644 (file)
@@ -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