ramips: fix size-cells on spi nodes
[openwrt/staging/wigyori.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))