ramips/rt288x,rt3883: Synchronize Makefiles with DTS compatible
[oweals/openwrt.git] / target / linux / mediatek / modules.mk
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/sdhci-mtk
19   SUBMENU:=Other modules
20   TITLE:=Mediatek SDHCI driver
21   DEPENDS:=@TARGET_mediatek_mt7622 +kmod-sdhci
22   KCONFIG:=CONFIG_MMC_MTK 
23   FILES:= \
24         $(LINUX_DIR)/drivers/mmc/host/mtk-sd.ko
25   AUTOLOAD:=$(call AutoProbe,mtk-sd,1)
26 endef
27
28 $(eval $(call KernelPackage,sdhci-mtk))
29
30 define KernelPackage/crypto-hw-mtk
31   TITLE:= MediaTek's Crypto Engine module
32   DEPENDS:=@TARGET_mediatek
33   KCONFIG:= \
34         CONFIG_CRYPTO_HW=y \
35         CONFIG_CRYPTO_AES=y \
36         CONFIG_CRYPTO_AEAD=y \
37         CONFIG_CRYPTO_SHA1=y \
38         CONFIG_CRYPTO_SHA256=y \
39         CONFIG_CRYPTO_SHA512=y \
40         CONFIG_CRYPTO_HMAC=y \
41         CONFIG_CRYPTO_DEV_MEDIATEK
42   FILES:=$(LINUX_DIR)/drivers/crypto/mediatek/mtk-crypto.ko
43   AUTOLOAD:=$(call AutoLoad,90,mtk-crypto)
44   $(call AddDepends/crypto)
45 endef
46
47 define KernelPackage/crypto-hw-mtk/description
48   MediaTek's EIP97 Cryptographic Engine driver.
49 endef
50
51 $(eval $(call KernelPackage,crypto-hw-mtk))