Skip to content

Commit 9b221ba

Browse files
kvmajomarckleinebudde
authored andcommitted
can: kvaser_pciefd: Add support for Kvaser PCIe 8xCAN
Add support for new Kvaser pciefd device, PCIe 8xCAN, based on Xilinx FPGA. Signed-off-by: Martin Jocic <[email protected]> Link: https://lore.kernel.org/all/[email protected] Signed-off-by: Marc Kleine-Budde <[email protected]>
1 parent 0b40cd9 commit 9b221ba

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

drivers/net/can/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ config CAN_KVASER_PCIEFD
169169
Kvaser Mini PCI Express 1xCAN v3
170170
Kvaser Mini PCI Express 2xCAN v3
171171
Kvaser M.2 PCIe 4xCAN
172+
Kvaser PCIe 8xCAN
172173

173174
config CAN_SLCAN
174175
tristate "Serial / USB serial CAN Adaptors (slcan)"

drivers/net/can/kvaser_pciefd.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ MODULE_DESCRIPTION("CAN driver for Kvaser CAN/PCIe devices");
2727
#define KVASER_PCIEFD_BEC_POLL_FREQ (jiffies + msecs_to_jiffies(200))
2828
#define KVASER_PCIEFD_MAX_ERR_REP 256U
2929
#define KVASER_PCIEFD_CAN_TX_MAX_COUNT 17U
30-
#define KVASER_PCIEFD_MAX_CAN_CHANNELS 4UL
30+
#define KVASER_PCIEFD_MAX_CAN_CHANNELS 8UL
3131
#define KVASER_PCIEFD_DMA_COUNT 2U
3232

3333
#define KVASER_PCIEFD_DMA_SIZE (4U * 1024U)
@@ -49,6 +49,7 @@ MODULE_DESCRIPTION("CAN driver for Kvaser CAN/PCIe devices");
4949

5050
/* Xilinx based devices */
5151
#define KVASER_PCIEFD_M2_4CAN_DEVICE_ID 0x0017
52+
#define KVASER_PCIEFD_8CAN_DEVICE_ID 0x0019
5253

5354
/* Altera SerDes Enable 64-bit DMA address translation */
5455
#define KVASER_PCIEFD_ALTERA_DMA_64BIT BIT(0)
@@ -496,6 +497,10 @@ static struct pci_device_id kvaser_pciefd_id_table[] = {
496497
PCI_DEVICE(KVASER_PCIEFD_VENDOR, KVASER_PCIEFD_M2_4CAN_DEVICE_ID),
497498
.driver_data = (kernel_ulong_t)&kvaser_pciefd_xilinx_driver_data,
498499
},
500+
{
501+
PCI_DEVICE(KVASER_PCIEFD_VENDOR, KVASER_PCIEFD_8CAN_DEVICE_ID),
502+
.driver_data = (kernel_ulong_t)&kvaser_pciefd_xilinx_driver_data,
503+
},
499504
{
500505
0,
501506
},

0 commit comments

Comments
 (0)