Skip to content

Commit 6546ae2

Browse files
kishonLorenzo Pieralisi
authored andcommitted
misc: pci_endpoint_test: Add J721E in pci_device_id table
Add J721E in pci_device_id table so that pci-epf-test can be used for testing PCIe EP in J721E. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kishon Vijay Abraham I <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Reviewed-by: Rob Herring <[email protected]>
1 parent f3e2591 commit 6546ae2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/misc/pci_endpoint_test.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
#define PCI_ENDPOINT_TEST_FLAGS 0x2c
6969
#define FLAG_USE_DMA BIT(0)
7070

71+
#define PCI_DEVICE_ID_TI_J721E 0xb00d
7172
#define PCI_DEVICE_ID_TI_AM654 0xb00c
7273

7374
#define is_am654_pci_dev(pdev) \
@@ -932,6 +933,11 @@ static const struct pci_endpoint_test_data am654_data = {
932933
.irq_type = IRQ_TYPE_MSI,
933934
};
934935

936+
static const struct pci_endpoint_test_data j721e_data = {
937+
.alignment = 256,
938+
.irq_type = IRQ_TYPE_MSI,
939+
};
940+
935941
static const struct pci_device_id pci_endpoint_test_tbl[] = {
936942
{ PCI_DEVICE(PCI_VENDOR_ID_TI, PCI_DEVICE_ID_TI_DRA74x),
937943
.driver_data = (kernel_ulong_t)&default_data,
@@ -946,6 +952,9 @@ static const struct pci_device_id pci_endpoint_test_tbl[] = {
946952
},
947953
{ PCI_DEVICE(PCI_VENDOR_ID_RENESAS, PCI_DEVICE_ID_RENESAS_R8A774C0),
948954
},
955+
{ PCI_DEVICE(PCI_VENDOR_ID_TI, PCI_DEVICE_ID_TI_J721E),
956+
.driver_data = (kernel_ulong_t)&j721e_data,
957+
},
949958
{ }
950959
};
951960
MODULE_DEVICE_TABLE(pci, pci_endpoint_test_tbl);

0 commit comments

Comments
 (0)