ramips: fix MikroTik 750Gr3 ports MAC addresses
[openwrt/staging/wigyori.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-ramips
11 SUBMENU:=Other modules
12 TITLE:=MT7628 PWM
13 DEPENDS:=@(TARGET_ramips_mt76x8)
14 KCONFIG:= \
15 CONFIG_PWM=y \
16 CONFIG_PWM_MEDIATEK_RAMIPS \
17 CONFIG_PWM_SYSFS=y
18 FILES:= \
19 $(LINUX_DIR)/drivers/pwm/pwm-mediatek-ramips.ko
20 AUTOLOAD:=$(call AutoProbe,pwm-mediatek-ramips)
21 endef
22
23 define KernelPackage/pwm-mediatek-ramips/description
24 Kernel modules for MediaTek Pulse Width Modulator
25 endef
26
27 $(eval $(call KernelPackage,pwm-mediatek-ramips))
28
29 define KernelPackage/sdhci-mt7620
30 SUBMENU:=Other modules
31 TITLE:=MT7620 SDCI
32 DEPENDS:=@(TARGET_ramips_mt7620||TARGET_ramips_mt76x8||TARGET_ramips_mt7621) +kmod-mmc
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_mt76x8)
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-mt7628
65 $(call i2c_defaults,$(I2C_MT7621_MODULES),59)
66 TITLE:=MT7628/88 I2C Controller
67 DEPENDS:=+kmod-i2c-core \
68 @(TARGET_ramips_mt76x8)
69 endef
70
71 define KernelPackage/i2c-mt7628/description
72 Kernel modules for enable mt7621 i2c controller.
73 endef
74
75 $(eval $(call KernelPackage,i2c-mt7628))
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@lt5.4 \
88 $(LINUX_DIR)/drivers/staging/ralink-gdma/ralink-gdma.ko@ge5.4
89 AUTOLOAD:=$(call AutoLoad,52,ralink-gdma)
90 endef
91
92 define KernelPackage/dma-ralink/description
93 Kernel modules for enable ralink dma engine.
94 endef
95
96 $(eval $(call KernelPackage,dma-ralink))
97
98 define KernelPackage/hsdma-mtk
99 SUBMENU:=Other modules
100 TITLE:=MediaTek HSDMA Engine
101 DEPENDS:=@TARGET_ramips @TARGET_ramips_mt7621
102 KCONFIG:= \
103 CONFIG_DMADEVICES=y \
104 CONFIG_DW_DMAC_PCI=n \
105 CONFIG_MTK_HSDMA
106 FILES:= \
107 $(LINUX_DIR)/drivers/dma/virt-dma.ko \
108 $(LINUX_DIR)/drivers/dma/mtk-hsdma.ko@lt5.4 \
109 $(LINUX_DIR)/drivers/staging/mt7621-dma/mtk-hsdma.ko@ge5.4
110 AUTOLOAD:=$(call AutoLoad,53,mtk-hsdma)
111 endef
112
113 define KernelPackage/hsdma-mtk/description
114 Kernel modules for enable MediaTek hsdma engine.
115 endef
116
117 $(eval $(call KernelPackage,hsdma-mtk))
118
119 define KernelPackage/sound-mt7620
120 TITLE:=MT7620 PCM/I2S Alsa Driver
121 DEPENDS:=@TARGET_ramips +kmod-sound-soc-core +kmod-regmap-i2c +kmod-dma-ralink @!TARGET_ramips_rt288x
122 KCONFIG:= \
123 CONFIG_SND_RALINK_SOC_I2S \
124 CONFIG_SND_SIMPLE_CARD \
125 CONFIG_SND_SIMPLE_CARD_UTILS \
126 CONFIG_SND_SOC_WM8960
127 FILES:= \
128 $(LINUX_DIR)/sound/soc/ralink/snd-soc-ralink-i2s.ko \
129 $(LINUX_DIR)/sound/soc/generic/snd-soc-simple-card.ko \
130 $(LINUX_DIR)/sound/soc/generic/snd-soc-simple-card-utils.ko \
131 $(LINUX_DIR)/sound/soc/codecs/snd-soc-wm8960.ko
132 AUTOLOAD:=$(call AutoLoad,90,snd-soc-wm8960 snd-soc-ralink-i2s snd-soc-simple-card)
133 $(call AddDepends/sound)
134 endef
135
136 define KernelPackage/sound-mt7620/description
137 Alsa modules for ralink i2s controller.
138 endef
139
140 $(eval $(call KernelPackage,sound-mt7620))