From 29b412b8c511f50c4efb40a66a513cd4d015e5d6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Fri, 3 Jun 2016 12:41:33 +0200 Subject: [PATCH] ramips: add kmod-pwm-mediatek for mt7628/mt7688 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Álvaro Fernández Rojas --- target/linux/ramips/modules.mk | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/target/linux/ramips/modules.mk b/target/linux/ramips/modules.mk index 665dc41ae8b..15017d01d9f 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 -- 2.30.2