developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 1 | define 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 |
| 10 | endef |
| 11 | |
| 12 | define KernelPackage/ata-ahci-mtk/description |
| 13 | Mediatek AHCI Serial ATA host controllers |
| 14 | endef |
| 15 | |
| 16 | $(eval $(call KernelPackage,ata-ahci-mtk)) |
| 17 | |
| 18 | define 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) |
| 26 | endef |
| 27 | |
| 28 | $(eval $(call KernelPackage,btmtkuart)) |
| 29 | |
| 30 | define 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) |
| 38 | endef |
| 39 | |
| 40 | $(eval $(call KernelPackage,sdhci-mtk)) |
| 41 | |
| 42 | define 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) |
| 57 | endef |
| 58 | |
| 59 | define KernelPackage/crypto-hw-mtk/description |
| 60 | MediaTek's EIP97 Cryptographic Engine driver. |
| 61 | endef |
| 62 | |
| 63 | $(eval $(call KernelPackage,crypto-hw-mtk)) |
| 64 | |
developer | be797a3 | 2021-12-16 16:56:09 +0800 | [diff] [blame] | 65 | define 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) |
| 79 | endef |
| 80 | |
| 81 | define KernelPackage/sound-soc-mt79xx/description |
| 82 | Support for MT79xx Platform sound |
| 83 | endef |
| 84 | |
| 85 | $(eval $(call KernelPackage,sound-soc-mt79xx)) |
| 86 | |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 87 | define 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 \ |
developer | 2494820 | 2021-11-24 17:38:27 +0800 | [diff] [blame] | 94 | CONFIG_NET_MEDIATEK_HNAT |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 95 | FILES:= \ |
| 96 | $(LINUX_DIR)/drivers/net/ethernet/mediatek/mtk_hnat/mtkhnat.ko |
| 97 | endef |
| 98 | |
| 99 | define KernelPackage/mediatek_hnat/description |
| 100 | Kernel modules for MediaTek HW NAT offloading |
| 101 | endef |
| 102 | |
| 103 | $(eval $(call KernelPackage,mediatek_hnat)) |
| 104 | |