Skip to content

Commit 4c3f972

Browse files
Gilad Ben-Yossefherbertx
authored andcommitted
crypto: ccree - introduce CryptoCell driver
Introduce basic low level Arm TrustZone CryptoCell HW support. This first patch doesn't actually register any Crypto API transformations, these will follow up in the next patch. This first revision supports the CC 712 REE component. Signed-off-by: Gilad Ben-Yossef <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent e294ca1 commit 4c3f972

22 files changed

+3784
-0
lines changed

drivers/crypto/Kconfig

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,4 +730,31 @@ config CRYPTO_DEV_ARTPEC6
730730

731731
To compile this driver as a module, choose M here.
732732

733+
config CRYPTO_DEV_CCREE
734+
tristate "Support for ARM TrustZone CryptoCell family of security processors"
735+
depends on CRYPTO && CRYPTO_HW && OF && HAS_DMA
736+
default n
737+
select CRYPTO_HASH
738+
select CRYPTO_BLKCIPHER
739+
select CRYPTO_DES
740+
select CRYPTO_AEAD
741+
select CRYPTO_AUTHENC
742+
select CRYPTO_SHA1
743+
select CRYPTO_MD5
744+
select CRYPTO_SHA256
745+
select CRYPTO_SHA512
746+
select CRYPTO_HMAC
747+
select CRYPTO_AES
748+
select CRYPTO_CBC
749+
select CRYPTO_ECB
750+
select CRYPTO_CTR
751+
select CRYPTO_XTS
752+
help
753+
Say 'Y' to enable a driver for the Arm TrustZone CryptoCell
754+
family of processors. Currently only the CryptoCell 712 REE
755+
is supported.
756+
Choose this if you wish to use hardware acceleration of
757+
cryptographic operations on the system REE.
758+
If unsure say Y.
759+
733760
endif # CRYPTO_HW

drivers/crypto/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ obj-$(CONFIG_CRYPTO_DEV_ATMEL_ECC) += atmel-ecc.o
66
obj-$(CONFIG_CRYPTO_DEV_BFIN_CRC) += bfin_crc.o
77
obj-$(CONFIG_CRYPTO_DEV_CAVIUM_ZIP) += cavium/
88
obj-$(CONFIG_CRYPTO_DEV_CCP) += ccp/
9+
obj-$(CONFIG_CRYPTO_DEV_CCREE) += ccree/
910
obj-$(CONFIG_CRYPTO_DEV_CHELSIO) += chelsio/
1011
obj-$(CONFIG_CRYPTO_DEV_CPT) += cavium/cpt/
1112
obj-$(CONFIG_CRYPTO_DEV_NITROX) += cavium/nitrox/

drivers/crypto/ccree/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
3+
obj-$(CONFIG_CRYPTO_DEV_CCREE) := ccree.o
4+
ccree-y := cc_driver.o cc_buffer_mgr.o cc_request_mgr.o cc_ivgen.o cc_sram_mgr.o
5+
ccree-$(CONFIG_DEBUG_FS) += cc_debugfs.o
6+
ccree-$(CONFIG_PM) += cc_pm.o

0 commit comments

Comments
 (0)