xref: /openbmc/linux/drivers/crypto/hisilicon/Kconfig (revision 416d8220)
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"
19416d8220SZaibo Xu	select CRYPTO_BLKCIPHER
20416d8220SZaibo Xu	select CRYPTO_ALGAPI
21416d8220SZaibo Xu	select CRYPTO_LIB_DES
22416d8220SZaibo Xu	select CRYPTO_DEV_HISI_QM
23416d8220SZaibo Xu	depends on PCI && PCI_MSI
24416d8220SZaibo Xu	depends on ARM64 || (COMPILE_TEST && 64BIT)
25416d8220SZaibo Xu	help
26416d8220SZaibo Xu	  Support for HiSilicon SEC Engine of version 2 in crypto subsystem.
27416d8220SZaibo Xu	  It provides AES, SM4, and 3DES algorithms with ECB
28416d8220SZaibo Xu	  CBC, and XTS cipher mode.
29416d8220SZaibo Xu
30416d8220SZaibo Xu	  To compile this as a module, choose M here: the module
31416d8220SZaibo Xu          will be called hisi_sec2.
32416d8220SZaibo Xu
33263c9959SZhou Wangconfig CRYPTO_DEV_HISI_QM
34263c9959SZhou Wang	tristate
35a7174f97SArnd Bergmann	depends on ARM64 || COMPILE_TEST
36a7174f97SArnd Bergmann	depends on PCI && PCI_MSI
37263c9959SZhou Wang	help
38263c9959SZhou Wang	  HiSilicon accelerator engines use a common queue management
39263c9959SZhou Wang	  interface. Specific engine driver may use this module.
40dfed0098SZhou Wang
4162c455caSZhou Wangconfig CRYPTO_DEV_HISI_ZIP
4262c455caSZhou Wang	tristate "Support for HiSilicon ZIP accelerator"
43a7174f97SArnd Bergmann	depends on PCI && PCI_MSI
44a7174f97SArnd Bergmann	depends on ARM64 || (COMPILE_TEST && 64BIT)
45a7174f97SArnd Bergmann	depends on !CPU_BIG_ENDIAN || COMPILE_TEST
4662c455caSZhou Wang	select CRYPTO_DEV_HISI_QM
4762c455caSZhou Wang	select SG_SPLIT
4862c455caSZhou Wang	help
4962c455caSZhou Wang	  Support for HiSilicon ZIP Driver
50c8b4b477SZaibo Xu
51c8b4b477SZaibo Xuconfig CRYPTO_DEV_HISI_HPRE
52c8b4b477SZaibo Xu	tristate "Support for HISI HPRE accelerator"
53c8b4b477SZaibo Xu	depends on PCI && PCI_MSI
54c8b4b477SZaibo Xu	depends on ARM64 || (COMPILE_TEST && 64BIT)
55c8b4b477SZaibo Xu	select CRYPTO_DEV_HISI_QM
56c8b4b477SZaibo Xu	select CRYPTO_DH
57c8b4b477SZaibo Xu	select CRYPTO_RSA
58c8b4b477SZaibo Xu	help
59c8b4b477SZaibo Xu	  Support for HiSilicon HPRE(High Performance RSA Engine)
60c8b4b477SZaibo Xu	  accelerator, which can accelerate RSA and DH algorithms.
61