blob: ae4687632b2a501676720c3a801112efb0ddf6b7 [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
developer010cc992022-10-19 15:02:34 +080042define KernelPackage/crypto-eip197
43 TITLE:= EIP-197 Crypto Engine module
developerfd40db22021-04-29 10:08:25 +080044 DEPENDS:=@TARGET_mediatek
45 KCONFIG:= \
46 CONFIG_CRYPTO_HW=y \
developer010cc992022-10-19 15:02:34 +080047 CONFIG_CRYPTO_AUTHENC=y \
developerfd40db22021-04-29 10:08:25 +080048 CONFIG_CRYPTO_AES=y \
49 CONFIG_CRYPTO_AEAD=y \
developer010cc992022-10-19 15:02:34 +080050 CONFIG_CRYPTO_DES=y \
51 CONFIG_CRYPTO_MD5=y \
developerfd40db22021-04-29 10:08:25 +080052 CONFIG_CRYPTO_SHA1=y \
53 CONFIG_CRYPTO_SHA256=y \
54 CONFIG_CRYPTO_SHA512=y \
developer010cc992022-10-19 15:02:34 +080055 CONFIG_CRYPTO_SHA3=y \
developerfd40db22021-04-29 10:08:25 +080056 CONFIG_CRYPTO_HMAC=y \
developer010cc992022-10-19 15:02:34 +080057 CONFIG_CRYPTO_DEV_SAFEXCEL
58 FILES:=$(LINUX_DIR)/drivers/crypto/inside-secure/crypto_safexcel.ko
59 AUTOLOAD:=$(call AutoLoad,90,crypto-safexcel)
developerfd40db22021-04-29 10:08:25 +080060 $(call AddDepends/crypto)
61endef
62
developer010cc992022-10-19 15:02:34 +080063define KernelPackage/crypto-eip197/description
64 EIP-197 Cryptographic Engine driver.
developerfd40db22021-04-29 10:08:25 +080065endef
66
developer010cc992022-10-19 15:02:34 +080067$(eval $(call KernelPackage,crypto-eip197))
developerfd40db22021-04-29 10:08:25 +080068
developerbe797a32021-12-16 16:56:09 +080069define KernelPackage/sound-soc-mt79xx
70 TITLE:=MT79xx SoC sound support
71 KCONFIG:=\
72 CONFIG_SND_SOC_MEDIATEK \
73 CONFIG_SND_SOC_MT79XX \
74 CONFIG_SND_SOC_MT79XX_WM8960
75 FILES:= \
76 $(LINUX_DIR)/sound/soc/mediatek/common/snd-soc-mtk-common.ko \
77 $(LINUX_DIR)/sound/soc/mediatek/mt79xx/mt79xx-wm8960.ko \
78 $(LINUX_DIR)/sound/soc/mediatek/mt79xx/snd-soc-mt79xx-afe.ko \
79 $(LINUX_DIR)/sound/soc/codecs/snd-soc-wm8960.ko
80 AUTOLOAD:=$(call AutoLoad,57,regmap-i2c snd-soc-wm8960 snd-soc-mtk-common snd-soc-mt79xx-afe)
81 DEPENDS:=@TARGET_mediatek +kmod-regmap-i2c +kmod-sound-soc-core
82 $(call AddDepends/sound,+kmod-regmap-i2c)
83endef
84
85define KernelPackage/sound-soc-mt79xx/description
86 Support for MT79xx Platform sound
87endef
88
89$(eval $(call KernelPackage,sound-soc-mt79xx))
90
developerfd40db22021-04-29 10:08:25 +080091define KernelPackage/mediatek_hnat
92 SUBMENU:=Network Devices
93 TITLE:=Mediatek HNAT module
94 DEPENDS:=@TARGET_mediatek +kmod-nf-conntrack
95 KCONFIG:= \
96 CONFIG_BRIDGE_NETFILTER=y \
97 CONFIG_NETFILTER_FAMILY_BRIDGE=y \
developer24948202021-11-24 17:38:27 +080098 CONFIG_NET_MEDIATEK_HNAT
developerfd40db22021-04-29 10:08:25 +080099 FILES:= \
100 $(LINUX_DIR)/drivers/net/ethernet/mediatek/mtk_hnat/mtkhnat.ko
101endef
102
103define KernelPackage/mediatek_hnat/description
104 Kernel modules for MediaTek HW NAT offloading
105endef
106
107$(eval $(call KernelPackage,mediatek_hnat))
108
developer010cc992022-10-19 15:02:34 +0800109
110define KernelPackage/aquantia_aqtion
111 SUBMENU:=Network Devices
112 TITLE:=Aquantia AQtion(tm) Ethernet driver module
113 DEPENDS:=@TARGET_mediatek
114 KCONFIG:= \
115 CONFIG_NET_VENDOR_AQUANTIA=y \
116 CONFIG_AQTION
117 FILES:= \
118 $(LINUX_DIR)/drivers/net/ethernet/aquantia/atlantic/atlantic.ko
119endef
120
121define KernelPackage/aquantia_aqtion/description
122 Kernel modules for Aquantia AQtion(tm) Ethernet PCIe card driver
123endef
124
125$(eval $(call KernelPackage,aquantia_aqtion))