2 # Copyright (C) 2006-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 OTHER_MENU:=Other modules
10 define KernelPackage/pwm-mediatek
11 SUBMENU:=Other modules
13 DEPENDS:=@(TARGET_ramips_mt7628||TARGET_ramips_mt7688)
19 $(LINUX_DIR)/drivers/pwm/pwm-mediatek.ko
20 AUTOLOAD:=$(call AutoProbe,pwm-mediatek)
23 define KernelPackage/pwm-mediatek/description
24 Kernel modules for MediaTek Pulse Width Modulator
27 $(eval $(call KernelPackage,pwm-mediatek))
29 define KernelPackage/sdhci-mt7620
30 SUBMENU:=Other modules
32 DEPENDS:=@(TARGET_ramips_mt7620||TARGET_ramips_mt7628||TARGET_ramips_mt7621||TARGET_ramips_mt7688) +kmod-sdhci
35 CONFIG_MTK_AEE_KDUMP=n \
36 CONFIG_MTK_MMC_CD_POLL=n
38 $(LINUX_DIR)/drivers/mmc/host/mtk-mmc/mtk_sd.ko
39 AUTOLOAD:=$(call AutoProbe,mtk_sd,1)
42 $(eval $(call KernelPackage,sdhci-mt7620))
44 I2C_RALINK_MODULES:= \
45 CONFIG_I2C_RALINK:drivers/i2c/busses/i2c-ralink
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)
54 define KernelPackage/i2c-ralink/description
55 Kernel modules for enable ralink i2c controller.
58 $(eval $(call KernelPackage,i2c-ralink))
61 I2C_MT7621_MODULES:= \
62 CONFIG_I2C_MT7621:drivers/i2c/busses/i2c-mt7621
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_mt7628||TARGET_ramips_mt7688)
71 define KernelPackage/i2c-mt7628/description
72 Kernel modules for enable mt7621 i2c controller.
75 $(eval $(call KernelPackage,i2c-mt7628))
77 define KernelPackage/dma-ralink
78 SUBMENU:=Other modules
79 TITLE:=Ralink GDMA Engine
80 DEPENDS:=@TARGET_ramips
83 CONFIG_DW_DMAC_PCI=n \
86 $(LINUX_DIR)/drivers/dma/virt-dma.ko \
87 $(LINUX_DIR)/drivers/dma/ralink-gdma.ko
88 AUTOLOAD:=$(call AutoLoad,52,ralink-gdma)
91 define KernelPackage/dma-ralink/description
92 Kernel modules for enable ralink dma engine.
95 $(eval $(call KernelPackage,dma-ralink))
97 define KernelPackage/hsdma-mtk
98 SUBMENU:=Other modules
99 TITLE:=MediaTek HSDMA Engine
100 DEPENDS:=@TARGET_ramips @TARGET_ramips_mt7621
102 CONFIG_DMADEVICES=y \
103 CONFIG_DW_DMAC_PCI=n \
106 $(LINUX_DIR)/drivers/dma/virt-dma.ko \
107 $(LINUX_DIR)/drivers/dma/mtk-hsdma.ko
108 AUTOLOAD:=$(call AutoLoad,53,mtk-hsdma)
111 define KernelPackage/hsdma-mtk/description
112 Kernel modules for enable MediaTek hsdma engine.
115 $(eval $(call KernelPackage,hsdma-mtk))
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
121 CONFIG_SND_RALINK_SOC_I2S \
122 CONFIG_SND_SIMPLE_CARD \
123 CONFIG_SND_SOC_WM8960
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)
132 define KernelPackage/sound-mt7620/description
133 Alsa modules for ralink i2s controller.
136 $(eval $(call KernelPackage,sound-mt7620))