blob: 03d51135da686fbdc4567ad083d08439f98dfaeb [file] [log] [blame]
developerfd40db22021-04-29 10:08:25 +08001define KernelPackage/ata-ahci-mtk
2 TITLE:=Mediatek AHCI Serial ATA support
3 KCONFIG:=CONFIG_AHCI_MTK
4 FILES:= \
5 $(LINUX_DIR)/drivers/ata/ahci_mtk.ko \
6 $(LINUX_DIR)/drivers/ata/libahci_platform.ko
7 AUTOLOAD:=$(call AutoLoad,40,libahci libahci_platform ahci_mtk,1)
8 $(call AddDepends/ata)
9 DEPENDS+=@TARGET_mediatek_mt7622
10endef
11
12define KernelPackage/ata-ahci-mtk/description
13 Mediatek AHCI Serial ATA host controllers
14endef
15
16$(eval $(call KernelPackage,ata-ahci-mtk))
17
18define KernelPackage/btmtkuart
19 SUBMENU:=Other modules
20 TITLE:=MediaTek HCI UART driver
21 DEPENDS:=@TARGET_mediatek_mt7622 +kmod-bluetooth +mt7622bt-firmware
22 KCONFIG:=CONFIG_BT_MTKUART
23 FILES:= \
24 $(LINUX_DIR)/drivers/bluetooth/btmtkuart.ko
25 AUTOLOAD:=$(call AutoProbe,btmtkuart)
26endef
27
28$(eval $(call KernelPackage,btmtkuart))
29
30define KernelPackage/sdhci-mtk
31 SUBMENU:=Other modules
32 TITLE:=Mediatek SDHCI driver
33 DEPENDS:=@TARGET_mediatek_mt7622 +kmod-sdhci
34 KCONFIG:=CONFIG_MMC_MTK
35 FILES:= \
36 $(LINUX_DIR)/drivers/mmc/host/mtk-sd.ko
37 AUTOLOAD:=$(call AutoProbe,mtk-sd,1)
38endef
39
40$(eval $(call KernelPackage,sdhci-mtk))
41
42define KernelPackage/crypto-hw-mtk
43 TITLE:= MediaTek's Crypto Engine module
44 DEPENDS:=@TARGET_mediatek
45 KCONFIG:= \
46 CONFIG_CRYPTO_HW=y \
47 CONFIG_CRYPTO_AES=y \
48 CONFIG_CRYPTO_AEAD=y \
49 CONFIG_CRYPTO_SHA1=y \
50 CONFIG_CRYPTO_SHA256=y \
51 CONFIG_CRYPTO_SHA512=y \
52 CONFIG_CRYPTO_HMAC=y \
53 CONFIG_CRYPTO_DEV_MEDIATEK
54 FILES:=$(LINUX_DIR)/drivers/crypto/mediatek/mtk-crypto.ko
55 AUTOLOAD:=$(call AutoLoad,90,mtk-crypto)
56 $(call AddDepends/crypto)
57endef
58
59define KernelPackage/crypto-hw-mtk/description
60 MediaTek's EIP97 Cryptographic Engine driver.
61endef
62
63$(eval $(call KernelPackage,crypto-hw-mtk))
64
developerbe797a32021-12-16 16:56:09 +080065define KernelPackage/sound-soc-mt79xx
66 TITLE:=MT79xx SoC sound support
67 KCONFIG:=\
68 CONFIG_SND_SOC_MEDIATEK \
69 CONFIG_SND_SOC_MT79XX \
70 CONFIG_SND_SOC_MT79XX_WM8960
71 FILES:= \
72 $(LINUX_DIR)/sound/soc/mediatek/common/snd-soc-mtk-common.ko \
73 $(LINUX_DIR)/sound/soc/mediatek/mt79xx/mt79xx-wm8960.ko \
74 $(LINUX_DIR)/sound/soc/mediatek/mt79xx/snd-soc-mt79xx-afe.ko \
75 $(LINUX_DIR)/sound/soc/codecs/snd-soc-wm8960.ko
76 AUTOLOAD:=$(call AutoLoad,57,regmap-i2c snd-soc-wm8960 snd-soc-mtk-common snd-soc-mt79xx-afe)
77 DEPENDS:=@TARGET_mediatek +kmod-regmap-i2c +kmod-sound-soc-core
78 $(call AddDepends/sound,+kmod-regmap-i2c)
79endef
80
81define KernelPackage/sound-soc-mt79xx/description
82 Support for MT79xx Platform sound
83endef
84
85$(eval $(call KernelPackage,sound-soc-mt79xx))
86
developerfd40db22021-04-29 10:08:25 +080087define KernelPackage/mediatek_hnat
88 SUBMENU:=Network Devices
89 TITLE:=Mediatek HNAT module
90 DEPENDS:=@TARGET_mediatek +kmod-nf-conntrack
91 KCONFIG:= \
92 CONFIG_BRIDGE_NETFILTER=y \
93 CONFIG_NETFILTER_FAMILY_BRIDGE=y \
developer24948202021-11-24 17:38:27 +080094 CONFIG_NET_MEDIATEK_HNAT
developerfd40db22021-04-29 10:08:25 +080095 FILES:= \
96 $(LINUX_DIR)/drivers/net/ethernet/mediatek/mtk_hnat/mtkhnat.ko
97endef
98
99define KernelPackage/mediatek_hnat/description
100 Kernel modules for MediaTek HW NAT offloading
101endef
102
103$(eval $(call KernelPackage,mediatek_hnat))
104