crypto: ccp - Add support for new CCP/PSP device ID
authorJohn Allen <john.allen@amd.com>
Fri, 20 Aug 2021 14:56:21 +0000 (14:56 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 27 Aug 2021 08:30:18 +0000 (16:30 +0800)
Add a new CCP/PSP PCI device ID and corresponding entry in the dev_vdata
struct.

Signed-off-by: John Allen <john.allen@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/sp-pci.c

index 9bcc188..88c672a 100644 (file)
@@ -362,6 +362,12 @@ static const struct sp_dev_vdata dev_vdata[] = {
                .psp_vdata = &pspv3,
 #endif
        },
+       {       /* 5 */
+               .bar = 2,
+#ifdef CONFIG_CRYPTO_DEV_SP_PSP
+               .psp_vdata = &pspv2,
+#endif
+       },
 };
 static const struct pci_device_id sp_pci_table[] = {
        { PCI_VDEVICE(AMD, 0x1537), (kernel_ulong_t)&dev_vdata[0] },
@@ -370,6 +376,7 @@ static const struct pci_device_id sp_pci_table[] = {
        { PCI_VDEVICE(AMD, 0x1486), (kernel_ulong_t)&dev_vdata[3] },
        { PCI_VDEVICE(AMD, 0x15DF), (kernel_ulong_t)&dev_vdata[4] },
        { PCI_VDEVICE(AMD, 0x1649), (kernel_ulong_t)&dev_vdata[4] },
+       { PCI_VDEVICE(AMD, 0x14CA), (kernel_ulong_t)&dev_vdata[5] },
        /* Last entry must be zero */
        { 0, }
 };