Skip to content

Commit 433cd2c

Browse files
DZainherbertx
authored andcommitted
crypto: rockchip - add crypto driver for rk3288
Crypto driver support: ecb(aes) cbc(aes) ecb(des) cbc(des) ecb(des3_ede) cbc(des3_ede) You can alloc tags above in your case. And other algorithms and platforms will be added later on. Signed-off-by: Zain Wang <zain.wang@rock-chips.com> Tested-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent e81c1b4 commit 433cd2c

6 files changed

Lines changed: 1127 additions & 0 deletions

File tree

‎drivers/crypto/Kconfig‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,4 +497,15 @@ config CRYPTO_DEV_SUN4I_SS
497497
To compile this driver as a module, choose M here: the module
498498
will be called sun4i-ss.
499499

500+
config CRYPTO_DEV_ROCKCHIP
501+
tristate "Rockchip's Cryptographic Engine driver"
502+
depends on OF && ARCH_ROCKCHIP
503+
select CRYPTO_AES
504+
select CRYPTO_DES
505+
select CRYPTO_BLKCIPHER
506+
507+
help
508+
This driver interfaces with the hardware crypto accelerator.
509+
Supporting cbc/ecb chainmode, and aes/des/des3_ede cipher mode.
510+
500511
endif # CRYPTO_HW

‎drivers/crypto/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ obj-$(CONFIG_CRYPTO_DEV_QAT) += qat/
2929
obj-$(CONFIG_CRYPTO_DEV_QCE) += qce/
3030
obj-$(CONFIG_CRYPTO_DEV_VMX) += vmx/
3131
obj-$(CONFIG_CRYPTO_DEV_SUN4I_SS) += sunxi-ss/
32+
obj-$(CONFIG_CRYPTO_DEV_ROCKCHIP) += rockchip/

‎drivers/crypto/rockchip/Makefile‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
obj-$(CONFIG_CRYPTO_DEV_ROCKCHIP) += rk_crypto.o
2+
rk_crypto-objs := rk3288_crypto.o \
3+
rk3288_crypto_ablkcipher.o \

0 commit comments

Comments
 (0)