aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/modules.mk
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2018-05-24 22:10:49 +0200
committerJohn Crispin <john@phrozen.org>2018-05-24 22:14:03 +0200
commit51740777fb37cb7bdc250d74b366840269439cf3 (patch)
tree60d65a95c514b02986a0f3f81b508ca8633a0d8b /target/linux/mediatek/modules.mk
parent050da2107a7eb2a571a8a3d0cee21cc6a44b72b8 (diff)
downloadupstream-51740777fb37cb7bdc250d74b366840269439cf3.tar.gz
upstream-51740777fb37cb7bdc250d74b366840269439cf3.tar.bz2
upstream-51740777fb37cb7bdc250d74b366840269439cf3.zip
mediatek: add mt7622 subtarget
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target/linux/mediatek/modules.mk')
-rw-r--r--target/linux/mediatek/modules.mk51
1 files changed, 51 insertions, 0 deletions
diff --git a/target/linux/mediatek/modules.mk b/target/linux/mediatek/modules.mk
new file mode 100644
index 0000000000..7f8c038cae
--- /dev/null
+++ b/target/linux/mediatek/modules.mk
@@ -0,0 +1,51 @@
+define KernelPackage/ata-ahci-mtk
+ TITLE:=Mediatek AHCI Serial ATA support
+ KCONFIG:=CONFIG_AHCI_MTK
+ FILES:= \
+ $(LINUX_DIR)/drivers/ata/ahci_mtk.ko \
+ $(LINUX_DIR)/drivers/ata/libahci_platform.ko
+ AUTOLOAD:=$(call AutoLoad,40,libahci libahci_platform ahci_mtk,1)
+ $(call AddDepends/ata)
+ DEPENDS+=@TARGET_mediatek_mt7622
+endef
+
+define KernelPackage/ata-ahci-mtk/description
+ Mediatek AHCI Serial ATA host controllers
+endef
+
+$(eval $(call KernelPackage,ata-ahci-mtk))
+
+define KernelPackage/sdhci-mtk
+ SUBMENU:=Other modules
+ TITLE:=Mediatek SDHCI driver
+ DEPENDS:=@TARGET_mediatek_mt7622 +kmod-sdhci
+ KCONFIG:=CONFIG_MMC_MTK
+ FILES:= \
+ $(LINUX_DIR)/drivers/mmc/host/mtk-sd.ko
+ AUTOLOAD:=$(call AutoProbe,mtk-sd,1)
+endef
+
+$(eval $(call KernelPackage,sdhci-mtk))
+
+define KernelPackage/crypto-hw-mtk
+ TITLE:= MediaTek's Crypto Engine module
+ DEPENDS:=@TARGET_mediatek
+ KCONFIG:= \
+ CONFIG_CRYPTO_HW=y \
+ CONFIG_CRYPTO_AES=y \
+ CONFIG_CRYPTO_AEAD=y \
+ CONFIG_CRYPTO_SHA1=y \
+ CONFIG_CRYPTO_SHA256=y \
+ CONFIG_CRYPTO_SHA512=y \
+ CONFIG_CRYPTO_HMAC=y \
+ CONFIG_CRYPTO_DEV_MEDIATEK
+ FILES:=$(LINUX_DIR)/drivers/crypto/mediatek/mtk-crypto.ko
+ AUTOLOAD:=$(call AutoLoad,90,mtk-crypto)
+ $(call AddDepends/crypto)
+endef
+
+define KernelPackage/crypto-hw-mtk/description
+ MediaTek's EIP97 Cryptographic Engine driver.
+endef
+
+$(eval $(call KernelPackage,crypto-hw-mtk))