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

can: sja1000: add support for Elcus CAN200PCI

This patch adds support for Elcus CAN200PCI card.

Signed-off-by: Oleg Moroz <oleg.moroz@mcc.vniiem.ru>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>

authored by

Oleg Moroz and committed by
Marc Kleine-Budde
2dcb90ef 45593c2b

+22 -1
+22 -1
drivers/net/can/sja1000/plx_pci.c
··· 44 44 "esd CAN-PCI/PMC/266, " 45 45 "esd CAN-PCIe/2000, " 46 46 "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") 48 49 MODULE_LICENSE("GPL v2"); 49 50 50 51 #define PLX_PCI_MAX_CHAN 2 ··· 122 121 #define ESD_PCI_SUB_SYS_ID_CPCI200 0x010b 123 122 #define ESD_PCI_SUB_SYS_ID_PCIE2000 0x0200 124 123 #define ESD_PCI_SUB_SYS_ID_PCI104200 0x0501 124 + 125 + #define CAN200PCI_DEVICE_ID 0x9030 126 + #define CAN200PCI_VENDOR_ID 0x10b5 127 + #define CAN200PCI_SUB_DEVICE_ID 0x0301 128 + #define CAN200PCI_SUB_VENDOR_ID 0xe1c5 125 129 126 130 #define IXXAT_PCI_VENDOR_ID 0x10b5 127 131 #define IXXAT_PCI_DEVICE_ID 0x9050 ··· 239 233 /* based on PLX9030 */ 240 234 }; 241 235 236 + static struct plx_pci_card_info plx_pci_card_info_elcus = { 237 + "Eclus CAN-200-PCI", 2, 238 + PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR, 239 + {1, 0x00, 0x00}, { {2, 0x00, 0x80}, {3, 0x00, 0x80} }, 240 + &plx_pci_reset_common 241 + /* based on PLX9030 */ 242 + }; 243 + 242 244 static DEFINE_PCI_DEVICE_TABLE(plx_pci_tbl) = { 243 245 { 244 246 /* Adlink PCI-7841/cPCI-7841 */ ··· 331 317 CTI_PCI_VENDOR_ID, CTI_PCI_DEVICE_ID_CRG001, 332 318 0, 0, 333 319 (kernel_ulong_t)&plx_pci_card_info_cti 320 + }, 321 + { 322 + /* Elcus CAN-200-PCI */ 323 + CAN200PCI_VENDOR_ID, CAN200PCI_DEVICE_ID, 324 + CAN200PCI_SUB_VENDOR_ID, CAN200PCI_SUB_DEVICE_ID, 325 + 0, 0, 326 + (kernel_ulong_t)&plx_pci_card_info_elcus 334 327 }, 335 328 { 0,} 336 329 };