99c5a9d0fcf4bc8d0f35c4f2f5a6fd0c4fb8793c
[openwrt/staging/chunkeey.git] / target / linux / ramips / modules.mk
1 #
2 # Copyright (C) 2006-2016 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
10 define KernelPackage/pwm-mediatek
11 SUBMENU:=Other modules
12 TITLE:=MT7628 PWM
13 DEPENDS:=@(TARGET_ramips_mt7628||TARGET_ramips_mt7688)
14 KCONFIG:= \
15 CONFIG_PWM=y \
16 CONFIG_PWM_MEDIATEK \
17 CONFIG_PWM_SYSFS=y
18 FILES:= \
19 $(LINUX_DIR)/drivers/pwm/pwm-mediatek.ko
20 AUTOLOAD:=$(call AutoProbe,pwm-mediatek)
21 endef
22
23 define KernelPackage/pwm-mediatek/description
24 Kernel modules for MediaTek Pulse Width Modulator
25 endef
26
27 $(eval $(call KernelPackage,pwm-mediatek))
28
29 define KernelPackage/sdhci-mt7620
30 SUBMENU:=Other modules
31 TITLE:=MT7620 SDCI
32 DEPENDS:=@(TARGET_ramips_mt7620||TARGET_ramips_mt7628||TARGET_ramips_mt7621||TARGET_ramips_mt7688) +kmod-sdhci
33 KCONFIG:= \
34 CONFIG_MTK_MMC \
35 CONFIG_MTK_AEE_KDUMP=n \
36 CONFIG_MTK_MMC_CD_POLL=n
37 FILES:= \
38 $(LINUX_DIR)/drivers/mmc/host/mtk-mmc/mtk_sd.ko
39 AUTOLOAD:=$(call AutoProbe,mtk_sd,1)
40 endef
41
42 $(eval $(call KernelPackage,sdhci-mt7620))
43
44 I2C_RALINK_MODULES:= \
45 CONFIG_I2C_RALINK:drivers/i2c/busses/i2c-ralink
46
47 define KernelPackage/i2c-ralink
48 $(call i2c_defaults,$(I2C_RALINK_MODULES),59)
49 TITLE:=Ralink I2C Controller
50 DEPENDS:=kmod-i2c-core @TARGET_ramips \
51 @!(TARGET_ramips_mt7621||TARGET_ramips_mt7628||TARGET_ramips_mt7688)
52 endef
53
54 define KernelPackage/i2c-ralink/description
55 Kernel modules for enable ralink i2c controller.
56 endef
57
58 $(eval $(call KernelPackage,i2c-ralink))
59
60
61 I2C_MT7621_MODULES:= \
62 CONFIG_I2C_MT7621:drivers/i2c/busses/i2c-mt7621
63
64 define KernelPackage/i2c-mt7621
65 $(call i2c_defaults,$(I2C_MT7621_MODULES),59)
66 TITLE:=MT7621 I2C Controller
67 DEPENDS:=kmod-i2c-core \
68 @(TARGET_ramips_mt7621||TARGET_ramips_mt7628||TARGET_ramips_mt7688)
69 endef
70
71 define KernelPackage/i2c-mt7621/description
72 Kernel modules for enable mt7621 i2c controller.
73 endef
74
75 $(eval $(call KernelPackage,i2c-mt7621))
76
77 define KernelPackage/dma-ralink
78 SUBMENU:=Other modules
79 TITLE:=Ralink GDMA Engine
80 DEPENDS:=@TARGET_ramips
81 KCONFIG:= \
82 CONFIG_DMADEVICES=y \
83 CONFIG_DW_DMAC_PCI=n \
84 CONFIG_DMA_RALINK
85 FILES:= \
86 $(LINUX_DIR)/drivers/dma/virt-dma.ko \
87 $(LINUX_DIR)/drivers/dma/ralink-gdma.ko
88 AUTOLOAD:=$(call AutoLoad,52,ralink-gdma)
89 endef
90
91 define KernelPackage/dma-ralink/description
92 Kernel modules for enable ralink dma engine.
93 endef
94
95 $(eval $(call KernelPackage,dma-ralink))
96
97 define KernelPackage/hsdma-mtk
98 SUBMENU:=Other modules
99 TITLE:=MediaTek HSDMA Engine
100 DEPENDS:=@TARGET_ramips @TARGET_ramips_mt7621
101 KCONFIG:= \
102 CONFIG_DMADEVICES=y \
103 CONFIG_DW_DMAC_PCI=n \
104 CONFIG_MTK_HSDMA
105 FILES:= \
106 $(LINUX_DIR)/drivers/dma/virt-dma.ko \
107 $(LINUX_DIR)/drivers/dma/mtk-hsdma.ko
108 AUTOLOAD:=$(call AutoLoad,53,mtk-hsdma)
109 endef
110
111 define KernelPackage/hsdma-mtk/description
112 Kernel modules for enable MediaTek hsdma engine.
113 endef
114
115 $(eval $(call KernelPackage,hsdma-mtk))
116
117 define KernelPackage/sound-mt7620
118 TITLE:=MT7620 PCM/I2S Alsa Driver
119 DEPENDS:=@TARGET_ramips +kmod-sound-soc-core +kmod-regmap +kmod-dma-ralink @!TARGET_ramips_rt288x
120 KCONFIG:= \
121 CONFIG_SND_RALINK_SOC_I2S \
122 CONFIG_SND_SIMPLE_CARD \
123 CONFIG_SND_SOC_WM8960
124 FILES:= \
125 $(LINUX_DIR)/sound/soc/ralink/snd-soc-ralink-i2s.ko \
126 $(LINUX_DIR)/sound/soc/generic/snd-soc-simple-card.ko \
127 $(LINUX_DIR)/sound/soc/codecs/snd-soc-wm8960.ko
128 AUTOLOAD:=$(call AutoLoad,90,snd-soc-wm8960 snd-soc-ralink-i2s snd-soc-simple-card)
129 $(call AddDepends/sound)
130 endef
131
132 define KernelPackage/sound-mt7620/description
133 Alsa modules for ralink i2s controller.
134 endef
135
136 $(eval $(call KernelPackage,sound-mt7620))