Commit 81fa652e authored by Vadim Fedorenko's avatar Vadim Fedorenko Committed by Jakub Kicinski

ptp: ocp: add Celestica timecard PCI ids

Celestica is producing card with their own vendor id and device id.
Add these ids to driver to support this card.
Signed-off-by: default avatarVadim Fedorenko <vadfed@fb.com>
Signed-off-by: default avatarJonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 3a35e53a
...@@ -23,6 +23,9 @@ ...@@ -23,6 +23,9 @@
#define PCI_VENDOR_ID_FACEBOOK 0x1d9b #define PCI_VENDOR_ID_FACEBOOK 0x1d9b
#define PCI_DEVICE_ID_FACEBOOK_TIMECARD 0x0400 #define PCI_DEVICE_ID_FACEBOOK_TIMECARD 0x0400
#define PCI_VENDOR_ID_CELESTICA 0x18d4
#define PCI_DEVICE_ID_CELESTICA_TIMECARD 0x1008
static struct class timecard_class = { static struct class timecard_class = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.name = "timecard", .name = "timecard",
...@@ -629,7 +632,8 @@ static struct ocp_resource ocp_fb_resource[] = { ...@@ -629,7 +632,8 @@ static struct ocp_resource ocp_fb_resource[] = {
static const struct pci_device_id ptp_ocp_pcidev_id[] = { static const struct pci_device_id ptp_ocp_pcidev_id[] = {
{ PCI_DEVICE_DATA(FACEBOOK, TIMECARD, &ocp_fb_resource) }, { PCI_DEVICE_DATA(FACEBOOK, TIMECARD, &ocp_fb_resource) },
{ 0 } { PCI_DEVICE_DATA(CELESTICA, TIMECARD, &ocp_fb_resource) },
{ }
}; };
MODULE_DEVICE_TABLE(pci, ptp_ocp_pcidev_id); MODULE_DEVICE_TABLE(pci, ptp_ocp_pcidev_id);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment