2 # Copyright (C) 2006-2012 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
9 define KernelPackage/sdhci-mt7620
10 SUBMENU:=Other modules
12 DEPENDS:=@(TARGET_ramips_mt7620||TARGET_ramips_mt7628||TARGET_ramips_mt7621) +kmod-sdhci
15 CONFIG_MTK_AEE_KDUMP=n \
16 CONFIG_MTK_MMC_CD_POLL=n
18 $(LINUX_DIR)/drivers/mmc/host/mtk-mmc/mtk_sd.ko
19 AUTOLOAD:=$(call AutoProbe,mtk_sd,1)
22 $(eval $(call KernelPackage,sdhci-mt7620))
24 I2C_RALINK_MODULES:= \
25 CONFIG_I2C_RALINK:drivers/i2c/busses/i2c-ralink
27 define KernelPackage/i2c-ralink
28 $(call i2c_defaults,$(I2C_RALINK_MODULES),59)
29 TITLE:=Ralink I2C Controller
30 DEPENDS:=@TARGET_ramips kmod-i2c-core
33 define KernelPackage/i2c-ralink/description
34 Kernel modules for enable ralink i2c controller.
37 $(eval $(call KernelPackage,i2c-ralink))
39 define KernelPackage/sound-mt7620
40 TITLE:=MT7620 PCM/I2S Alsa Driver
41 DEPENDS:=@TARGET_ramips_mt7620 +kmod-sound-soc-core +kmod-regmap
43 CONFIG_SND_MT7620_SOC_I2S \
44 CONFIG_SND_MT7620_SOC_WM8960
46 $(LINUX_DIR)/sound/soc/ralink/snd-soc-mt7620-i2s.ko \
47 $(LINUX_DIR)/sound/soc/ralink/snd-soc-mt7620-wm8960.ko \
48 $(LINUX_DIR)/sound/soc/codecs/snd-soc-wm8960.ko
49 AUTOLOAD:=$(call AutoLoad,90,snd-soc-wm8960 snd-soc-mt7620-i2s snd-soc-mt7620-wm8960)
50 $(call AddDepends/sound)
53 define KernelPackage/sound-mt7620/description
54 Alsa modules for ralink i2s controller.
57 $(eval $(call KernelPackage,sound-mt7620))