# SPDX-License-Identifier: GPL-2.0

config CRYPTO_DEV_HISI_SEC
	tristate "Support for Hisilicon SEC crypto block cipher accelerator"
	select CRYPTO_BLKCIPHER
	select CRYPTO_ALGAPI
	select SG_SPLIT
	depends on ARM64 || COMPILE_TEST
	depends on HAS_IOMEM
	help
	  Support for Hisilicon SEC Engine in Hip06 and Hip07

	  To compile this as a module, choose M here: the module
	  will be called hisi_sec.

config CRYPTO_DEV_HISI_QM
	tristate
	depends on ARM64 && PCI

config CRYPTO_QM_UACCE
	bool "enable UACCE support for all acceleartor with Hisi QM"
	depends on CRYPTO_DEV_HISI_QM
	select UACCE
	help
	  Support UACCE interface in Hisi QM.

config CRYPTO_DEV_HISI_ZIP
	tristate "Support for HISI ZIP Driver"
	depends on ARM64 && ACPI
	select CRYPTO_DEV_HISI_QM
	select SG_SPLIT
	help
	  Support for HiSilicon HIP08 ZIP Driver.

config CRYPTO_DEV_HISI_HPRE
	tristate "Support for HISI HPRE accelerator"
	depends on PCI && PCI_MSI && ACPI
	depends on ARM64
	select CRYPTO_DEV_HISI_QM
	select CRYPTO_DH
	select CRYPTO_RSA
	help
	  Support for HiSilicon HPRE(High Performance RSA Engine)
	  accelerator, which can accelerate RSA and DH algorithms.

config CRYPTO_DEV_HISI_SEC2
	tristate "Support for HISI SEC Driver"
	depends on ARM64 && ACPI
	select CRYPTO_DEV_HISI_QM
	select CRYPTO_BLKCIPHER
	select CRYPTO_ALGAPI
	help
	  Support for HiSilicon HIP09 SEC Driver.

config CRYPTO_DEV_HISI_RDE
	tristate "Support for HISI RDE Driver"
	depends on ARM64 && ACPI
	select CRYPTO_DEV_HISI_QM
	help
	  Support for HiSilicon HIP09 RDE Driver.
