Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: ccp - Add support for PCI device 0x115A

PCI device 0x115A is similar to pspv5, except it doesn't have platform
access mailbox support.

Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Mario Limonciello (AMD) and committed by
Herbert Xu
9fc62901 457be301

+19
+19
drivers/crypto/ccp/sp-pci.c
··· 459 459 .intsts_reg = 0x10514, /* P2CMSG_INTSTS */ 460 460 }; 461 461 462 + static const struct psp_vdata pspv7 = { 463 + .tee = &teev2, 464 + .cmdresp_reg = 0x10944, /* C2PMSG_17 */ 465 + .cmdbuff_addr_lo_reg = 0x10948, /* C2PMSG_18 */ 466 + .cmdbuff_addr_hi_reg = 0x1094c, /* C2PMSG_19 */ 467 + .bootloader_info_reg = 0x109ec, /* C2PMSG_59 */ 468 + .feature_reg = 0x109fc, /* C2PMSG_63 */ 469 + .inten_reg = 0x10510, /* P2CMSG_INTEN */ 470 + .intsts_reg = 0x10514, /* P2CMSG_INTSTS */ 471 + }; 472 + 462 473 #endif 463 474 464 475 static const struct sp_dev_vdata dev_vdata[] = { ··· 536 525 .psp_vdata = &pspv6, 537 526 #endif 538 527 }, 528 + { /* 9 */ 529 + .bar = 2, 530 + #ifdef CONFIG_CRYPTO_DEV_SP_PSP 531 + .psp_vdata = &pspv7, 532 + #endif 533 + }, 534 + 539 535 }; 540 536 static const struct pci_device_id sp_pci_table[] = { 541 537 { PCI_VDEVICE(AMD, 0x1537), (kernel_ulong_t)&dev_vdata[0] }, ··· 557 539 { PCI_VDEVICE(AMD, 0x17E0), (kernel_ulong_t)&dev_vdata[7] }, 558 540 { PCI_VDEVICE(AMD, 0x156E), (kernel_ulong_t)&dev_vdata[8] }, 559 541 { PCI_VDEVICE(AMD, 0x17D8), (kernel_ulong_t)&dev_vdata[8] }, 542 + { PCI_VDEVICE(AMD, 0x115A), (kernel_ulong_t)&dev_vdata[9] }, 560 543 /* Last entry must be zero */ 561 544 { 0, } 562 545 };