blob: 67a983a34897420a8fe8ac07034b9d71e038321c [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
65define KernelPackage/mediatek_hnat
66 SUBMENU:=Network Devices
67 TITLE:=Mediatek HNAT module
68 DEPENDS:=@TARGET_mediatek +kmod-nf-conntrack
69 KCONFIG:= \
70 CONFIG_BRIDGE_NETFILTER=y \
71 CONFIG_NETFILTER_FAMILY_BRIDGE=y \
72 CONFIG_NET_MEDIATEK_HNAT \
73 CONFIG_NET_MEDIATEK_HW_QOS=n
74 FILES:= \
75 $(LINUX_DIR)/drivers/net/ethernet/mediatek/mtk_hnat/mtkhnat.ko
76endef
77
78define KernelPackage/mediatek_hnat/description
79 Kernel modules for MediaTek HW NAT offloading
80endef
81
82$(eval $(call KernelPackage,mediatek_hnat))
83