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_mt7620a +kmod-sdhci
14 CONFIG_MMC_SDHCI_MT7620
16 $(LINUX_DIR)/drivers/mmc/host/sdhci-mt7620.ko
17 AUTOLOAD:=$(call AutoProbe,sdhci-mt7620,1)
20 $(eval $(call KernelPackage,sdhci-mt7620))
22 I2C_RALINK_MODULES:= \
23 CONFIG_I2C_RALINK:drivers/i2c/busses/i2c-ralink
25 define KernelPackage/i2c-ralink
26 $(call i2c_defaults,$(I2C_RALINK_MODULES),59)
27 TITLE:=Ralink I2C Controller
28 DEPENDS:=@TARGET_ramips kmod-i2c-core
31 define KernelPackage/i2c-ralink/description
32 Kernel modules for enable ralink i2c controller.
35 $(eval $(call KernelPackage,i2c-ralink))
37 define KernelPackage/sound-mt7620
38 TITLE:=MT7620 PCM/I2S Alsa Driver
39 DEPENDS:=@TARGET_ramips_mt7620a +kmod-sound-soc-core +kmod-regmap
41 CONFIG_SND_MT7620_SOC_I2S \
42 CONFIG_SND_MT7620_SOC_WM8960
44 $(LINUX_DIR)/sound/soc/ralink/snd-soc-mt7620-i2s.ko \
45 $(LINUX_DIR)/sound/soc/ralink/snd-soc-mt7620-wm8960.ko \
46 $(LINUX_DIR)/sound/soc/codecs/snd-soc-wm8960.ko
47 AUTOLOAD:=$(call AutoLoad,90,snd-soc-wm8960 snd-soc-mt7620-i2s snd-soc-mt7620-wm8960)
48 $(call AddDepends/sound)
51 define KernelPackage/sound-mt7620/description
52 Alsa modules for ralink i2s controller.
55 $(eval $(call KernelPackage,sound-mt7620))