Skip to content

Commit a21eb94

Browse files
larperaxisherbertx
authored andcommitted
crypto: axis - add ARTPEC-6/7 crypto accelerator driver
This is an asynchronous crypto API driver for the accelerator present in the ARTPEC-6 and -7 SoCs from Axis Communications AB. The driver supports AES in ECB/CTR/CBC/XTS/GCM modes and SHA1/2 hash standards. Signed-off-by: Lars Persson <larper@axis.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 6f7473c commit a21eb94

4 files changed

Lines changed: 3215 additions & 0 deletions

File tree

‎drivers/crypto/Kconfig‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,4 +708,25 @@ config CRYPTO_DEV_SAFEXCEL
708708
chain mode, AES cipher mode and SHA1/SHA224/SHA256/SHA512 hash
709709
algorithms.
710710

711+
config CRYPTO_DEV_ARTPEC6
712+
tristate "Support for Axis ARTPEC-6/7 hardware crypto acceleration."
713+
depends on ARM && (ARCH_ARTPEC || COMPILE_TEST)
714+
depends on HAS_DMA
715+
depends on OF
716+
select CRYPTO_AEAD
717+
select CRYPTO_AES
718+
select CRYPTO_ALGAPI
719+
select CRYPTO_BLKCIPHER
720+
select CRYPTO_CTR
721+
select CRYPTO_HASH
722+
select CRYPTO_SHA1
723+
select CRYPTO_SHA256
724+
select CRYPTO_SHA384
725+
select CRYPTO_SHA512
726+
help
727+
Enables the driver for the on-chip crypto accelerator
728+
of Axis ARTPEC SoCs.
729+
730+
To compile this driver as a module, choose M here.
731+
711732
endif # CRYPTO_HW

‎drivers/crypto/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,4 @@ obj-$(CONFIG_CRYPTO_DEV_VIRTIO) += virtio/
4444
obj-$(CONFIG_CRYPTO_DEV_VMX) += vmx/
4545
obj-$(CONFIG_CRYPTO_DEV_BCM_SPU) += bcm/
4646
obj-$(CONFIG_CRYPTO_DEV_SAFEXCEL) += inside-secure/
47+
obj-$(CONFIG_CRYPTO_DEV_ARTPEC6) += axis/

‎drivers/crypto/axis/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
obj-$(CONFIG_CRYPTO_DEV_ARTPEC6) := artpec6_crypto.o

0 commit comments

Comments
 (0)