2 # Copyright (C) 2006-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 OTHER_MENU
:=Other modules
10 define KernelPackage
/pwm-mediatek
11 SUBMENU
:=Other modules
13 DEPENDS
:=@
(TARGET_ramips_mt7628||TARGET_ramips_mt7688
)
19 $(LINUX_DIR
)/drivers
/pwm
/pwm-mediatek.ko
20 AUTOLOAD
:=$(call AutoProbe
,pwm-mediatek
)
23 define KernelPackage
/pwm-mediatek
/description
24 Kernel modules for MediaTek Pulse Width Modulator
27 $(eval
$(call KernelPackage
,pwm-mediatek
))
29 define KernelPackage
/sdhci-mt7620
30 SUBMENU
:=Other modules
32 DEPENDS
:=@
(TARGET_ramips_mt7620||TARGET_ramips_mt7628||TARGET_ramips_mt7621||TARGET_ramips_mt7688
) +kmod-sdhci
35 CONFIG_MTK_AEE_KDUMP
=n \
36 CONFIG_MTK_MMC_CD_POLL
=n
38 $(LINUX_DIR
)/drivers
/mmc
/host
/mtk-mmc
/mtk_sd.ko
39 AUTOLOAD
:=$(call AutoProbe
,mtk_sd
,1)
42 $(eval
$(call KernelPackage
,sdhci-mt7620
))
44 I2C_RALINK_MODULES
:= \
45 CONFIG_I2C_RALINK
:drivers
/i2c
/busses
/i2c-ralink
47 define KernelPackage
/i2c-ralink
48 $(call i2c_defaults
,$(I2C_RALINK_MODULES
),59)
49 TITLE
:=Ralink I2C Controller
50 DEPENDS
:=@TARGET_ramips @
(!TARGET_ramips_mt7621
) kmod-i2c-core
53 define KernelPackage
/i2c-ralink
/description
54 Kernel modules for enable ralink i2c controller.
57 $(eval
$(call KernelPackage
,i2c-ralink
))
60 I2C_MT7621_MODULES
:= \
61 CONFIG_I2C_MT7621
:drivers
/i2c
/busses
/i2c-mt7621
63 define KernelPackage
/i2c-mt7621
64 $(call i2c_defaults
,$(I2C_MT7621_MODULES
),59)
65 TITLE
:=MT7621 I2C Controller
66 DEPENDS
:=@TARGET_ramips @TARGET_ramips_mt7621 kmod-i2c-core
69 define KernelPackage
/i2c-mt7621
/description
70 Kernel modules for enable mt7621 i2c controller.
73 $(eval
$(call KernelPackage
,i2c-mt7621
))
77 define KernelPackage
/sound-mt7620
78 TITLE
:=MT7620 PCM
/I2S Alsa Driver
79 DEPENDS
:=@TARGET_ramips_mt7620
+kmod-sound-soc-core
+kmod-regmap @BROKEN
81 CONFIG_SND_MT7620_SOC_I2S \
82 CONFIG_SND_MT7620_SOC_WM8960
84 $(LINUX_DIR
)/sound
/soc
/ralink
/snd-soc-mt7620-i2s.ko \
85 $(LINUX_DIR
)/sound
/soc
/ralink
/snd-soc-mt7620-wm8960.ko \
86 $(LINUX_DIR
)/sound
/soc
/codecs
/snd-soc-wm8960.ko
87 AUTOLOAD
:=$(call AutoLoad
,90,snd-soc-wm8960 snd-soc-mt7620-i2s snd-soc-mt7620-wm8960
)
88 $(call AddDepends
/sound
)
91 define KernelPackage
/sound-mt7620
/description
92 Alsa modules for ralink i2s controller.
95 $(eval
$(call KernelPackage
,sound-mt7620
))