xref: /OK3568_Linux_fs/kernel/drivers/crypto/ccp/Kconfig (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0-only
2*4882a593Smuzhiyunconfig CRYPTO_DEV_CCP_DD
3*4882a593Smuzhiyun	tristate "Secure Processor device driver"
4*4882a593Smuzhiyun	depends on CPU_SUP_AMD || ARM64
5*4882a593Smuzhiyun	default m
6*4882a593Smuzhiyun	help
7*4882a593Smuzhiyun	  Provides AMD Secure Processor device driver.
8*4882a593Smuzhiyun	  If you choose 'M' here, this module will be called ccp.
9*4882a593Smuzhiyun
10*4882a593Smuzhiyunconfig CRYPTO_DEV_SP_CCP
11*4882a593Smuzhiyun	bool "Cryptographic Coprocessor device"
12*4882a593Smuzhiyun	default y
13*4882a593Smuzhiyun	depends on CRYPTO_DEV_CCP_DD && DMADEVICES
14*4882a593Smuzhiyun	select HW_RANDOM
15*4882a593Smuzhiyun	select DMA_ENGINE
16*4882a593Smuzhiyun	select CRYPTO_SHA1
17*4882a593Smuzhiyun	select CRYPTO_SHA256
18*4882a593Smuzhiyun	help
19*4882a593Smuzhiyun	  Provides the support for AMD Cryptographic Coprocessor (CCP) device
20*4882a593Smuzhiyun	  which can be used to offload encryption operations such as SHA, AES
21*4882a593Smuzhiyun	  and more.
22*4882a593Smuzhiyun
23*4882a593Smuzhiyunconfig CRYPTO_DEV_CCP_CRYPTO
24*4882a593Smuzhiyun	tristate "Encryption and hashing offload support"
25*4882a593Smuzhiyun	default m
26*4882a593Smuzhiyun	depends on CRYPTO_DEV_CCP_DD
27*4882a593Smuzhiyun	depends on CRYPTO_DEV_SP_CCP
28*4882a593Smuzhiyun	select CRYPTO_HASH
29*4882a593Smuzhiyun	select CRYPTO_SKCIPHER
30*4882a593Smuzhiyun	select CRYPTO_AUTHENC
31*4882a593Smuzhiyun	select CRYPTO_RSA
32*4882a593Smuzhiyun	select CRYPTO_LIB_AES
33*4882a593Smuzhiyun	help
34*4882a593Smuzhiyun	  Support for using the cryptographic API with the AMD Cryptographic
35*4882a593Smuzhiyun	  Coprocessor. This module supports offload of SHA and AES algorithms.
36*4882a593Smuzhiyun	  If you choose 'M' here, this module will be called ccp_crypto.
37*4882a593Smuzhiyun
38*4882a593Smuzhiyunconfig CRYPTO_DEV_SP_PSP
39*4882a593Smuzhiyun	bool "Platform Security Processor (PSP) device"
40*4882a593Smuzhiyun	default y
41*4882a593Smuzhiyun	depends on CRYPTO_DEV_CCP_DD && X86_64
42*4882a593Smuzhiyun	help
43*4882a593Smuzhiyun	 Provide support for the AMD Platform Security Processor (PSP).
44*4882a593Smuzhiyun	 The PSP is a dedicated processor that provides support for key
45*4882a593Smuzhiyun	 management commands in Secure Encrypted Virtualization (SEV) mode,
46*4882a593Smuzhiyun	 along with software-based Trusted Execution Environment (TEE) to
47*4882a593Smuzhiyun	 enable third-party trusted applications.
48*4882a593Smuzhiyun
49*4882a593Smuzhiyunconfig CRYPTO_DEV_CCP_DEBUGFS
50*4882a593Smuzhiyun	bool "Enable CCP Internals in DebugFS"
51*4882a593Smuzhiyun	default n
52*4882a593Smuzhiyun	depends on CRYPTO_DEV_SP_CCP
53*4882a593Smuzhiyun	help
54*4882a593Smuzhiyun	  Expose CCP device information such as operation statistics, feature
55*4882a593Smuzhiyun	  information, and descriptor queue contents.
56