Skip to content

Commit 4d96f7d

Browse files
Kalyani Akulaherbertx
authored andcommitted
crypto: xilinx - Add Xilinx AES driver
This patch adds AES driver support for the Xilinx ZynqMP SoC. Signed-off-by: Mohan Marutirao Dhanawade <[email protected]> Signed-off-by: Kalyani Akula <[email protected]> Acked-by: Michal Simek <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 4c4f3f3 commit 4d96f7d

File tree

4 files changed

+472
-0
lines changed

4 files changed

+472
-0
lines changed

drivers/crypto/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,18 @@ config CRYPTO_DEV_ROCKCHIP
754754
This driver interfaces with the hardware crypto accelerator.
755755
Supporting cbc/ecb chainmode, and aes/des/des3_ede cipher mode.
756756

757+
config CRYPTO_DEV_ZYNQMP_AES
758+
tristate "Support for Xilinx ZynqMP AES hw accelerator"
759+
depends on ZYNQMP_FIRMWARE || COMPILE_TEST
760+
select CRYPTO_AES
761+
select CRYPTO_ENGINE
762+
select CRYPTO_AEAD
763+
help
764+
Xilinx ZynqMP has AES-GCM engine used for symmetric key
765+
encryption and decryption. This driver interfaces with AES hw
766+
accelerator. Select this if you want to use the ZynqMP module
767+
for AES algorithms.
768+
757769
config CRYPTO_DEV_MEDIATEK
758770
tristate "MediaTek's EIP97 Cryptographic Engine driver"
759771
depends on (ARM && ARCH_MEDIATEK) || COMPILE_TEST

drivers/crypto/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@ obj-$(CONFIG_CRYPTO_DEV_VMX) += vmx/
4747
obj-$(CONFIG_CRYPTO_DEV_BCM_SPU) += bcm/
4848
obj-$(CONFIG_CRYPTO_DEV_SAFEXCEL) += inside-secure/
4949
obj-$(CONFIG_CRYPTO_DEV_ARTPEC6) += axis/
50+
obj-$(CONFIG_CRYPTO_DEV_ZYNQMP_AES) += xilinx/
5051
obj-y += hisilicon/
5152
obj-$(CONFIG_CRYPTO_DEV_AMLOGIC_GXL) += amlogic/

drivers/crypto/xilinx/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
obj-$(CONFIG_CRYPTO_DEV_ZYNQMP_AES) += zynqmp-aes-gcm.o

0 commit comments

Comments
 (0)