1915e4e84SJonathan Cameron# SPDX-License-Identifier: GPL-2.0 2915e4e84SJonathan Cameron 3915e4e84SJonathan Cameronconfig CRYPTO_DEV_HISI_SEC 4915e4e84SJonathan Cameron tristate "Support for Hisilicon SEC crypto block cipher accelerator" 5b95bba5dSEric Biggers select CRYPTO_SKCIPHER 6915e4e84SJonathan Cameron select CRYPTO_ALGAPI 71bbbbcfdSMao Wenan select CRYPTO_LIB_DES 8915e4e84SJonathan Cameron select SG_SPLIT 9915e4e84SJonathan Cameron depends on ARM64 || COMPILE_TEST 10915e4e84SJonathan Cameron depends on HAS_IOMEM 11915e4e84SJonathan Cameron help 12915e4e84SJonathan Cameron Support for Hisilicon SEC Engine in Hip06 and Hip07 13915e4e84SJonathan Cameron 14915e4e84SJonathan Cameron To compile this as a module, choose M here: the module 15915e4e84SJonathan Cameron will be called hisi_sec. 16263c9959SZhou Wang 17416d8220SZaibo Xuconfig CRYPTO_DEV_HISI_SEC2 18416d8220SZaibo Xu tristate "Support for HiSilicon SEC2 crypto block cipher accelerator" 198e8c778dSEric Biggers select CRYPTO_SKCIPHER 20416d8220SZaibo Xu select CRYPTO_ALGAPI 21416d8220SZaibo Xu select CRYPTO_LIB_DES 22416d8220SZaibo Xu select CRYPTO_DEV_HISI_QM 232f072d75SZaibo Xu select CRYPTO_AEAD 242f072d75SZaibo Xu select CRYPTO_AUTHENC 252f072d75SZaibo Xu select CRYPTO_HMAC 262f072d75SZaibo Xu select CRYPTO_SHA1 272f072d75SZaibo Xu select CRYPTO_SHA256 282f072d75SZaibo Xu select CRYPTO_SHA512 292ae6feb1STianjia Zhang select CRYPTO_SM4_GENERIC 30*00bef64aSLukas Bulwahn depends on PCI_MSI 31b5f13031SYueHaibing depends on UACCE || UACCE=n 32416d8220SZaibo Xu depends on ARM64 || (COMPILE_TEST && 64BIT) 33c73d1871SStephen Rothwell depends on ACPI 34416d8220SZaibo Xu help 35416d8220SZaibo Xu Support for HiSilicon SEC Engine of version 2 in crypto subsystem. 36416d8220SZaibo Xu It provides AES, SM4, and 3DES algorithms with ECB 372f072d75SZaibo Xu CBC, and XTS cipher mode, and AEAD algorithms. 38416d8220SZaibo Xu 39416d8220SZaibo Xu To compile this as a module, choose M here: the module 40416d8220SZaibo Xu will be called hisi_sec2. 41416d8220SZaibo Xu 42263c9959SZhou Wangconfig CRYPTO_DEV_HISI_QM 43263c9959SZhou Wang tristate 44a7174f97SArnd Bergmann depends on ARM64 || COMPILE_TEST 45*00bef64aSLukas Bulwahn depends on PCI_MSI 4647c16b44SHongbo Yao depends on UACCE || UACCE=n 47f88480e3SShukun Tan depends on ACPI 48263c9959SZhou Wang help 49263c9959SZhou Wang HiSilicon accelerator engines use a common queue management 50263c9959SZhou Wang interface. Specific engine driver may use this module. 51dfed0098SZhou Wang 5262c455caSZhou Wangconfig CRYPTO_DEV_HISI_ZIP 5362c455caSZhou Wang tristate "Support for HiSilicon ZIP accelerator" 54*00bef64aSLukas Bulwahn depends on PCI_MSI 55a7174f97SArnd Bergmann depends on ARM64 || (COMPILE_TEST && 64BIT) 56a7174f97SArnd Bergmann depends on !CPU_BIG_ENDIAN || COMPILE_TEST 5747c16b44SHongbo Yao depends on UACCE || UACCE=n 58c73d1871SStephen Rothwell depends on ACPI 5962c455caSZhou Wang select CRYPTO_DEV_HISI_QM 6062c455caSZhou Wang help 6162c455caSZhou Wang Support for HiSilicon ZIP Driver 62c8b4b477SZaibo Xu 63c8b4b477SZaibo Xuconfig CRYPTO_DEV_HISI_HPRE 64c8b4b477SZaibo Xu tristate "Support for HISI HPRE accelerator" 65*00bef64aSLukas Bulwahn depends on PCI_MSI 66b5f13031SYueHaibing depends on UACCE || UACCE=n 67c8b4b477SZaibo Xu depends on ARM64 || (COMPILE_TEST && 64BIT) 68c73d1871SStephen Rothwell depends on ACPI 69c8b4b477SZaibo Xu select CRYPTO_DEV_HISI_QM 70c8b4b477SZaibo Xu select CRYPTO_DH 71c8b4b477SZaibo Xu select CRYPTO_RSA 727d156979SHui Tang select CRYPTO_CURVE25519 737d156979SHui Tang select CRYPTO_ECDH 74c8b4b477SZaibo Xu help 75c8b4b477SZaibo Xu Support for HiSilicon HPRE(High Performance RSA Engine) 76c8b4b477SZaibo Xu accelerator, which can accelerate RSA and DH algorithms. 7756c6da16SWeili Qian 7856c6da16SWeili Qianconfig CRYPTO_DEV_HISI_TRNG 7956c6da16SWeili Qian tristate "Support for HISI TRNG Driver" 8056c6da16SWeili Qian depends on ARM64 && ACPI 8156c6da16SWeili Qian select HW_RANDOM 82e4d9d10eSWeili Qian select CRYPTO_RNG 8356c6da16SWeili Qian help 8456c6da16SWeili Qian Support for HiSilicon TRNG Driver. 85