Skip to content

Commit 2dcb90e

Browse files
Oleg Morozmarckleinebudde
authored andcommitted
can: sja1000: add support for Elcus CAN200PCI
This patch adds support for Elcus CAN200PCI card. Signed-off-by: Oleg Moroz <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]>
1 parent 45593c2 commit 2dcb90e

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

drivers/net/can/sja1000/plx_pci.c

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ MODULE_SUPPORTED_DEVICE("Adlink PCI-7841/cPCI-7841, "
4444
"esd CAN-PCI/PMC/266, "
4545
"esd CAN-PCIe/2000, "
4646
"Connect Tech Inc. CANpro/104-Plus Opto (CRG001), "
47-
"IXXAT PC-I 04/PCI")
47+
"IXXAT PC-I 04/PCI, "
48+
"ELCUS CAN-200-PCI")
4849
MODULE_LICENSE("GPL v2");
4950

5051
#define PLX_PCI_MAX_CHAN 2
@@ -122,6 +123,11 @@ struct plx_pci_card {
122123
#define ESD_PCI_SUB_SYS_ID_PCIE2000 0x0200
123124
#define ESD_PCI_SUB_SYS_ID_PCI104200 0x0501
124125

126+
#define CAN200PCI_DEVICE_ID 0x9030
127+
#define CAN200PCI_VENDOR_ID 0x10b5
128+
#define CAN200PCI_SUB_DEVICE_ID 0x0301
129+
#define CAN200PCI_SUB_VENDOR_ID 0xe1c5
130+
125131
#define IXXAT_PCI_VENDOR_ID 0x10b5
126132
#define IXXAT_PCI_DEVICE_ID 0x9050
127133
#define IXXAT_PCI_SUB_SYS_ID 0x2540
@@ -233,6 +239,14 @@ static struct plx_pci_card_info plx_pci_card_info_cti = {
233239
/* based on PLX9030 */
234240
};
235241

242+
static struct plx_pci_card_info plx_pci_card_info_elcus = {
243+
"Eclus CAN-200-PCI", 2,
244+
PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR,
245+
{1, 0x00, 0x00}, { {2, 0x00, 0x80}, {3, 0x00, 0x80} },
246+
&plx_pci_reset_common
247+
/* based on PLX9030 */
248+
};
249+
236250
static DEFINE_PCI_DEVICE_TABLE(plx_pci_tbl) = {
237251
{
238252
/* Adlink PCI-7841/cPCI-7841 */
@@ -318,6 +332,13 @@ static DEFINE_PCI_DEVICE_TABLE(plx_pci_tbl) = {
318332
0, 0,
319333
(kernel_ulong_t)&plx_pci_card_info_cti
320334
},
335+
{
336+
/* Elcus CAN-200-PCI */
337+
CAN200PCI_VENDOR_ID, CAN200PCI_DEVICE_ID,
338+
CAN200PCI_SUB_VENDOR_ID, CAN200PCI_SUB_DEVICE_ID,
339+
0, 0,
340+
(kernel_ulong_t)&plx_pci_card_info_elcus
341+
},
321342
{ 0,}
322343
};
323344
MODULE_DEVICE_TABLE(pci, plx_pci_tbl);

0 commit comments

Comments
 (0)