Skip to content

Commit d9a0fbf

Browse files
Antony Pavlovgregkh
authored andcommitted
serial: 8250_pci: add support for Cronyx Omega PCI multiserial board.
This patch adds support for the Omega-PCI, an 8-port asynchronous multiport adapter for computers with PCI bus [1]. [1] http://www.cronyx.ru/hardware/ompci.html Signed-off-by: Antony Pavlov <antony@niisi.msk.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent 5f873ba commit d9a0fbf

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

‎drivers/tty/serial/8250_pci.c‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -971,6 +971,14 @@ ce4100_serial_setup(struct serial_private *priv,
971971
return ret;
972972
}
973973

974+
static int
975+
pci_omegapci_setup(struct serial_private *priv,
976+
struct pciserial_board *board,
977+
struct uart_port *port, int idx)
978+
{
979+
return setup_port(priv, port, 2, idx * 8, 0);
980+
}
981+
974982
static int skip_tx_en_setup(struct serial_private *priv,
975983
const struct pciserial_board *board,
976984
struct uart_port *port, int idx)
@@ -1011,6 +1019,7 @@ static int skip_tx_en_setup(struct serial_private *priv,
10111019
#define PCI_DEVICE_ID_TITAN_200EISI 0xA017
10121020
#define PCI_DEVICE_ID_OXSEMI_16PCI958 0x9538
10131021
#define PCIE_DEVICE_ID_NEO_2_OX_IBM 0x00F6
1022+
#define PCI_DEVICE_ID_PLX_CRONYX_OMEGA 0xc001
10141023

10151024
/* Unknown vendors/cards - this should not be in linux/pci_ids.h */
10161025
#define PCI_SUBDEVICE_ID_UNKNOWN_0x1584 0x1584
@@ -1437,6 +1446,16 @@ static struct pci_serial_quirk pci_serial_quirks[] __refdata = {
14371446
.init = pci_oxsemi_tornado_init,
14381447
.setup = pci_default_setup,
14391448
},
1449+
/*
1450+
* Cronyx Omega PCI (PLX-chip based)
1451+
*/
1452+
{
1453+
.vendor = PCI_VENDOR_ID_PLX,
1454+
.device = PCI_DEVICE_ID_PLX_CRONYX_OMEGA,
1455+
.subvendor = PCI_ANY_ID,
1456+
.subdevice = PCI_ANY_ID,
1457+
.setup = pci_omegapci_setup,
1458+
},
14401459
/*
14411460
* Default "match everything" terminator entry
14421461
*/
@@ -1624,6 +1643,7 @@ enum pci_board_num_t {
16241643
pbn_ADDIDATA_PCIe_4_3906250,
16251644
pbn_ADDIDATA_PCIe_8_3906250,
16261645
pbn_ce4100_1_115200,
1646+
pbn_omegapci,
16271647
};
16281648

16291649
/*
@@ -2319,6 +2339,12 @@ static struct pciserial_board pci_boards[] __devinitdata = {
23192339
.base_baud = 921600,
23202340
.reg_shift = 2,
23212341
},
2342+
[pbn_omegapci] = {
2343+
.flags = FL_BASE0,
2344+
.num_ports = 8,
2345+
.base_baud = 115200,
2346+
.uart_offset = 0x200,
2347+
},
23222348
};
23232349

23242350
static const struct pci_device_id softmodem_blacklist[] = {
@@ -3816,6 +3842,12 @@ static struct pci_device_id serial_pci_tbl[] = {
38163842
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
38173843
pbn_ce4100_1_115200 },
38183844

3845+
/*
3846+
* Cronyx Omega PCI
3847+
*/
3848+
{ PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_CRONYX_OMEGA,
3849+
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3850+
pbn_omegapci },
38193851

38203852
/*
38213853
* These entries match devices with class COMMUNICATION_SERIAL,

0 commit comments

Comments
 (0)