crypto: ccp - Add support for an interface for platform features
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 10 Mar 2023 21:19:47 +0000 (15:19 -0600)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 17 Mar 2023 03:16:43 +0000 (11:16 +0800)
commit7ccc4f4e2e50e4a29f9ee8f5c9e187f8491bb6e7
tree4b0673b67f480fc4caf008307d7e66522e97f8d2
parent1c5c1daf04d13916867ef68c6ba7ae4f5e73801f
crypto: ccp - Add support for an interface for platform features

Some platforms with a PSP support an interface for features that
interact directly with the PSP instead of through a SEV or TEE
environment.

Initialize this interface so that other drivers can consume it.
These drivers may either be subdrivers for the ccp module or
external modules.  For external modules, export a symbol for them
to utilize.

Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/Makefile
drivers/crypto/ccp/platform-access.c [new file with mode: 0644]
drivers/crypto/ccp/platform-access.h [new file with mode: 0644]
drivers/crypto/ccp/psp-dev.c
drivers/crypto/ccp/psp-dev.h
drivers/crypto/ccp/sp-dev.h
include/linux/psp-platform-access.h [new file with mode: 0644]