Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0f6e5c82 authored by Pascal van Leeuwen's avatar Pascal van Leeuwen Committed by Herbert Xu
Browse files

crypto: inside-secure - make driver selectable for non-Marvell hardware



While being a generic EIP97/EIP197 driver, the driver was only selectable
for Marvell Armada hardware. This fix makes the driver selectable for any
Device Tree supporting kernel configuration, allowing it to be used for
other compatible hardware by just adding the correct device tree entry.

It also allows the driver to be selected for PCI(E) supporting kernel con-
figurations, to be able to use it with PCIE based FPGA development boards
for pre-silicon driver development by both Inside Secure and its IP custo-
mers.

Signed-off-by: default avatarPascal van Leeuwen <pvanleeuwen@verimatrix.com>
Acked-by: default avatarAntoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent c4624488
Loading
Loading
Loading
Loading
+6 −6
Original line number Original line Diff line number Diff line
@@ -717,8 +717,7 @@ source "drivers/crypto/stm32/Kconfig"


config CRYPTO_DEV_SAFEXCEL
config CRYPTO_DEV_SAFEXCEL
	tristate "Inside Secure's SafeXcel cryptographic engine driver"
	tristate "Inside Secure's SafeXcel cryptographic engine driver"
	depends on OF
	depends on OF || PCI || COMPILE_TEST
	depends on (ARM64 && ARCH_MVEBU) || (COMPILE_TEST && 64BIT)
	select CRYPTO_LIB_AES
	select CRYPTO_LIB_AES
	select CRYPTO_AUTHENC
	select CRYPTO_AUTHENC
	select CRYPTO_BLKCIPHER
	select CRYPTO_BLKCIPHER
@@ -730,10 +729,11 @@ config CRYPTO_DEV_SAFEXCEL
	select CRYPTO_SHA256
	select CRYPTO_SHA256
	select CRYPTO_SHA512
	select CRYPTO_SHA512
	help
	help
	  This driver interfaces with the SafeXcel EIP-197 cryptographic engine
	  This driver interfaces with the SafeXcel EIP-97 and EIP-197 cryptographic
	  designed by Inside Secure. Select this if you want to use CBC/ECB
	  engines designed by Inside Secure. It currently accelerates DES, 3DES and
	  chain mode, AES cipher mode and SHA1/SHA224/SHA256/SHA512 hash
	  AES block ciphers in ECB and CBC mode, as well as SHA1, SHA224, SHA256,
	  algorithms.
	  SHA384 and SHA512 hash algorithms for both basic hash and HMAC.
	  Additionally, it accelerates combined AES-CBC/HMAC-SHA AEAD operations.


config CRYPTO_DEV_ARTPEC6
config CRYPTO_DEV_ARTPEC6
	tristate "Support for Axis ARTPEC-6/7 hardware crypto acceleration."
	tristate "Support for Axis ARTPEC-6/7 hardware crypto acceleration."