Skip to content

Commit 10c5ccc

Browse files
Jay Dolangregkh
authored andcommitted
serial: 8250_exar: add support for ACCES cards
Add ACCES VIDs and PIDs that use the Exar chips Signed-off-by: Jay Dolan <[email protected]> Cc: stable <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 4a3e208 commit 10c5ccc

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

drivers/tty/serial/8250/8250_exar.c

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@
2525

2626
#include "8250.h"
2727

28+
#define PCI_DEVICE_ID_ACCES_COM_2S 0x1052
29+
#define PCI_DEVICE_ID_ACCES_COM_4S 0x105d
30+
#define PCI_DEVICE_ID_ACCES_COM_8S 0x106c
31+
#define PCI_DEVICE_ID_ACCES_COM232_8 0x10a8
32+
#define PCI_DEVICE_ID_ACCES_COM_2SM 0x10d2
33+
#define PCI_DEVICE_ID_ACCES_COM_4SM 0x10db
34+
#define PCI_DEVICE_ID_ACCES_COM_8SM 0x10ea
35+
2836
#define PCI_DEVICE_ID_COMMTECH_4224PCI335 0x0002
2937
#define PCI_DEVICE_ID_COMMTECH_4222PCI335 0x0004
3038
#define PCI_DEVICE_ID_COMMTECH_2324PCI335 0x000a
@@ -677,6 +685,22 @@ static int __maybe_unused exar_resume(struct device *dev)
677685

678686
static SIMPLE_DEV_PM_OPS(exar_pci_pm, exar_suspend, exar_resume);
679687

688+
static const struct exar8250_board acces_com_2x = {
689+
.num_ports = 2,
690+
.setup = pci_xr17c154_setup,
691+
};
692+
693+
static const struct exar8250_board acces_com_4x = {
694+
.num_ports = 4,
695+
.setup = pci_xr17c154_setup,
696+
};
697+
698+
static const struct exar8250_board acces_com_8x = {
699+
.num_ports = 8,
700+
.setup = pci_xr17c154_setup,
701+
};
702+
703+
680704
static const struct exar8250_board pbn_fastcom335_2 = {
681705
.num_ports = 2,
682706
.setup = pci_fastcom335_setup,
@@ -745,6 +769,15 @@ static const struct exar8250_board pbn_exar_XR17V8358 = {
745769
}
746770

747771
static const struct pci_device_id exar_pci_tbl[] = {
772+
EXAR_DEVICE(ACCESSIO, ACCES_COM_2S, acces_com_2x),
773+
EXAR_DEVICE(ACCESSIO, ACCES_COM_4S, acces_com_4x),
774+
EXAR_DEVICE(ACCESSIO, ACCES_COM_8S, acces_com_8x),
775+
EXAR_DEVICE(ACCESSIO, ACCES_COM232_8, acces_com_8x),
776+
EXAR_DEVICE(ACCESSIO, ACCES_COM_2SM, acces_com_2x),
777+
EXAR_DEVICE(ACCESSIO, ACCES_COM_4SM, acces_com_4x),
778+
EXAR_DEVICE(ACCESSIO, ACCES_COM_8SM, acces_com_8x),
779+
780+
748781
CONNECT_DEVICE(XR17C152, UART_2_232, pbn_connect),
749782
CONNECT_DEVICE(XR17C154, UART_4_232, pbn_connect),
750783
CONNECT_DEVICE(XR17C158, UART_8_232, pbn_connect),

0 commit comments

Comments
 (0)