mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 21:33:52 +00:00
crypto: ccp - Add bootloader and TEE version offsets
The bootloader and TEE versions are stored in registers that can be accessed from sysfs. This exports the information for recent client and datacenter parts. 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>
This commit is contained in:
parent
2e424c33d8
commit
e938b08ad8
1 changed files with 5 additions and 0 deletions
|
@ -423,6 +423,7 @@ static const struct tee_vdata teev1 = {
|
|||
.cmdbuff_addr_hi_reg = 0x1054c, /* C2PMSG_19 */
|
||||
.ring_wptr_reg = 0x10550, /* C2PMSG_20 */
|
||||
.ring_rptr_reg = 0x10554, /* C2PMSG_21 */
|
||||
.info_reg = 0x109e8, /* C2PMSG_58 */
|
||||
};
|
||||
|
||||
static const struct tee_vdata teev2 = {
|
||||
|
@ -448,6 +449,7 @@ static const struct platform_access_vdata pa_v2 = {
|
|||
|
||||
static const struct psp_vdata pspv1 = {
|
||||
.sev = &sevv1,
|
||||
.bootloader_info_reg = 0x105ec, /* C2PMSG_59 */
|
||||
.feature_reg = 0x105fc, /* C2PMSG_63 */
|
||||
.inten_reg = 0x10610, /* P2CMSG_INTEN */
|
||||
.intsts_reg = 0x10614, /* P2CMSG_INTSTS */
|
||||
|
@ -455,6 +457,7 @@ static const struct psp_vdata pspv1 = {
|
|||
|
||||
static const struct psp_vdata pspv2 = {
|
||||
.sev = &sevv2,
|
||||
.bootloader_info_reg = 0x109ec, /* C2PMSG_59 */
|
||||
.feature_reg = 0x109fc, /* C2PMSG_63 */
|
||||
.inten_reg = 0x10690, /* P2CMSG_INTEN */
|
||||
.intsts_reg = 0x10694, /* P2CMSG_INTSTS */
|
||||
|
@ -463,6 +466,7 @@ static const struct psp_vdata pspv2 = {
|
|||
static const struct psp_vdata pspv3 = {
|
||||
.tee = &teev1,
|
||||
.platform_access = &pa_v1,
|
||||
.bootloader_info_reg = 0x109ec, /* C2PMSG_59 */
|
||||
.feature_reg = 0x109fc, /* C2PMSG_63 */
|
||||
.inten_reg = 0x10690, /* P2CMSG_INTEN */
|
||||
.intsts_reg = 0x10694, /* P2CMSG_INTSTS */
|
||||
|
@ -471,6 +475,7 @@ static const struct psp_vdata pspv3 = {
|
|||
static const struct psp_vdata pspv4 = {
|
||||
.sev = &sevv2,
|
||||
.tee = &teev1,
|
||||
.bootloader_info_reg = 0x109ec, /* C2PMSG_59 */
|
||||
.feature_reg = 0x109fc, /* C2PMSG_63 */
|
||||
.inten_reg = 0x10690, /* P2CMSG_INTEN */
|
||||
.intsts_reg = 0x10694, /* P2CMSG_INTSTS */
|
||||
|
|
Loading…
Reference in a new issue