ralink: merge the mt7620a/n subtargets
[openwrt.git] / target / linux / ramips / modules.mk
1 #
2 # Copyright (C) 2006-2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 OTHER_MENU:=Other modules
9 define KernelPackage/sdhci-mt7620
10   SUBMENU:=Other modules
11   TITLE:=MT7620 SDCI
12   DEPENDS:=@(TARGET_ramips_mt7620||TARGET_ramips_mt7628||TARGET_ramips_mt7621) +kmod-sdhci
13   KCONFIG:= \
14         CONFIG_MTK_MMC \
15         CONFIG_MTK_AEE_KDUMP=n \
16         CONFIG_MTK_MMC_CD_POLL=n
17   FILES:= \
18         $(LINUX_DIR)/drivers/mmc/host/mtk-mmc/mtk_sd.ko
19   AUTOLOAD:=$(call AutoProbe,mtk_sd,1)
20 endef
21
22 $(eval $(call KernelPackage,sdhci-mt7620))
23
24 I2C_RALINK_MODULES:= \
25   CONFIG_I2C_RALINK:drivers/i2c/busses/i2c-ralink
26
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
31 endef
32
33 define KernelPackage/i2c-ralink/description
34  Kernel modules for enable ralink i2c controller.
35 endef
36
37 $(eval $(call KernelPackage,i2c-ralink))
38
39 define KernelPackage/sound-mt7620
40   TITLE:=MT7620 PCM/I2S Alsa Driver
41   DEPENDS:=@TARGET_ramips_mt7620 +kmod-sound-soc-core +kmod-regmap
42   KCONFIG:= \
43         CONFIG_SND_MT7620_SOC_I2S \
44         CONFIG_SND_MT7620_SOC_WM8960
45   FILES:= \
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)
51 endef
52
53 define KernelPackage/sound-mt7620/description
54  Alsa modules for ralink i2s controller.
55 endef
56
57 $(eval $(call KernelPackage,sound-mt7620))