kernel/3.18: update to version 3.18.25
[openwrt/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||TARGET_ramips_mt7688) +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 @(!TARGET_ramips_mt7621) 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
40 I2C_MT7621_MODULES:= \
41 CONFIG_I2C_MT7621:drivers/i2c/busses/i2c-mt7621
42
43 define KernelPackage/i2c-mt7621
44 $(call i2c_defaults,$(I2C_MT7621_MODULES),59)
45 TITLE:=MT7621 I2C Controller
46 DEPENDS:=@TARGET_ramips @TARGET_ramips_mt7621 kmod-i2c-core
47 endef
48
49 define KernelPackage/i2c-mt7621/description
50 Kernel modules for enable mt7621 i2c controller.
51 endef
52
53 $(eval $(call KernelPackage,i2c-mt7621))
54
55
56
57 define KernelPackage/sound-mt7620
58 TITLE:=MT7620 PCM/I2S Alsa Driver
59 DEPENDS:=@TARGET_ramips_mt7620 +kmod-sound-soc-core +kmod-regmap @BROKEN
60 KCONFIG:= \
61 CONFIG_SND_MT7620_SOC_I2S \
62 CONFIG_SND_MT7620_SOC_WM8960
63 FILES:= \
64 $(LINUX_DIR)/sound/soc/ralink/snd-soc-mt7620-i2s.ko \
65 $(LINUX_DIR)/sound/soc/ralink/snd-soc-mt7620-wm8960.ko \
66 $(LINUX_DIR)/sound/soc/codecs/snd-soc-wm8960.ko
67 AUTOLOAD:=$(call AutoLoad,90,snd-soc-wm8960 snd-soc-mt7620-i2s snd-soc-mt7620-wm8960)
68 $(call AddDepends/sound)
69 endef
70
71 define KernelPackage/sound-mt7620/description
72 Alsa modules for ralink i2s controller.
73 endef
74
75 $(eval $(call KernelPackage,sound-mt7620))
76
77
78 define KernelPackage/sound-mtk
79 TITLE:=Mediatek I2S Alsa Driver
80 DEPENDS:= +kmod-sound-soc-core +kmod-regmap +kmod-i2c-ralink @(TARGET_ramips_mt7628||TARGET_ramips_mt7688||TARGET_ramips_mt7620)
81 KCONFIG:= \
82 CONFIG_SND_MT76XX_SOC \
83 CONFIG_SND_MT76XX_I2S \
84 CONFIG_SND_MT76XX_PCM \
85 CONFIG_SND_SOC_WM8960
86 FILES:= \
87 $(LINUX_DIR)/sound/soc/mtk/ralink_gdma.ko \
88 $(LINUX_DIR)/sound/soc/mtk/snd-soc-mt76xx-i2s-ctl.ko \
89 $(LINUX_DIR)/sound/soc/mtk/snd-soc-mt76xx-i2s.ko \
90 $(LINUX_DIR)/sound/soc/mtk/snd-soc-mt76xx-pcm.ko \
91 $(LINUX_DIR)/sound/soc/mtk/snd-soc-mt76xx-machine.ko \
92 $(LINUX_DIR)/sound/soc/mtk/i2c_wm8960.ko \
93 $(LINUX_DIR)/sound/soc/codecs/snd-soc-wm8960.ko
94 AUTOLOAD:=$(call AutoLoad,90,ralink_gdma snd-soc-wm8960 i2c_wm8960 snd-soc-mt76xx-i2s-ctl snd-soc-mt76xx-i2s snd-soc-mt76xx-pcm snd-soc-mt76xx-machine)
95 $(call AddDepends/sound)
96 endef
97
98 define KernelPackage/sound-mtk/description
99 Alsa modules for ralink i2s controller.
100 endef
101
102 $(eval $(call KernelPackage,sound-mtk))