summaryrefslogtreecommitdiffstats
path: root/drivers/parport
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2018-02-07 14:47:51 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-14 12:54:09 -0400
commitec8e3893b41d56293f98d499de7dc123d362b2d5 (patch)
treee2a6878f474533a12687de252e11eaba0400dc12 /drivers/parport
parent520656c03c545011d1da702a261e2c782808b79f (diff)
parport: Add support for BrainBoxes PX272/PX306 MIO card
This adds support for BrainBoxes Multi I/O cards (4+1 serial + 1 parallel port): 02:00.0 0702: 135a:4100 (rev 02) Subsystem: 135a:0443 Flags: fast devsel, IRQ 18 Memory at f7d02000 (32-bit, non-prefetchable) [size=128] I/O ports at e000 [size=128] I/O ports at e080 [size=64] I/O ports at e0c0 [size=16] Memory at f7d01000 (32-bit, non-prefetchable) [size=128] Memory at f7d00000 (32-bit, non-prefetchable) [size=128] Capabilities: [50] MSI: Enable- Count=1/4 Maskable- 64bit+ Capabilities: [78] Power Management version 3 Capabilities: [80] Express Legacy Endpoint, MSI 01 Capabilities: [100] Virtual Channel Capabilities: [800] Advanced Error Reporting Reported-by: Nikola Ciprich <nikola.ciprich@linuxbox.cz> Tested-by: Nikola Ciprich <nikola.ciprich@linuxbox.cz> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/parport')
-rw-r--r--drivers/parport/parport_serial.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/parport/parport_serial.c b/drivers/parport/parport_serial.c
index e15b4845f7c6..53a3eae65ade 100644
--- a/drivers/parport/parport_serial.c
+++ b/drivers/parport/parport_serial.c
@@ -65,6 +65,7 @@ enum parport_pc_pci_cards {
65 wch_ch353_1s1p, 65 wch_ch353_1s1p,
66 wch_ch353_2s1p, 66 wch_ch353_2s1p,
67 wch_ch382_2s1p, 67 wch_ch382_2s1p,
68 brainboxes_5s1p,
68 sunix_2s1p, 69 sunix_2s1p,
69}; 70};
70 71
@@ -153,6 +154,7 @@ static struct parport_pc_pci cards[] = {
153 /* wch_ch353_1s1p*/ { 1, { { 1, -1}, } }, 154 /* wch_ch353_1s1p*/ { 1, { { 1, -1}, } },
154 /* wch_ch353_2s1p*/ { 1, { { 2, -1}, } }, 155 /* wch_ch353_2s1p*/ { 1, { { 2, -1}, } },
155 /* wch_ch382_2s1p*/ { 1, { { 2, -1}, } }, 156 /* wch_ch382_2s1p*/ { 1, { { 2, -1}, } },
157 /* brainboxes_5s1p */ { 1, { { 3, -1 }, } },
156 /* sunix_2s1p */ { 1, { { 3, -1 }, } }, 158 /* sunix_2s1p */ { 1, { { 3, -1 }, } },
157}; 159};
158 160
@@ -261,6 +263,10 @@ static struct pci_device_id parport_serial_pci_tbl[] = {
261 { 0x4348, 0x7053, 0x4348, 0x3253, 0, 0, wch_ch353_2s1p}, 263 { 0x4348, 0x7053, 0x4348, 0x3253, 0, 0, wch_ch353_2s1p},
262 { 0x1c00, 0x3250, 0x1c00, 0x3250, 0, 0, wch_ch382_2s1p}, 264 { 0x1c00, 0x3250, 0x1c00, 0x3250, 0, 0, wch_ch382_2s1p},
263 265
266 /* BrainBoxes PX272/PX306 MIO card */
267 { PCI_VENDOR_ID_INTASHIELD, 0x4100,
268 PCI_ANY_ID, PCI_ANY_ID, 0, 0, brainboxes_5s1p },
269
264 /* 270 /*
265 * More SUNIX variations. At least one of these has part number 271 * More SUNIX variations. At least one of these has part number
266 * '5079A but subdevice 0x102. That board reports 0x0708 as 272 * '5079A but subdevice 0x102. That board reports 0x0708 as
@@ -504,6 +510,12 @@ static struct pciserial_board pci_parport_serial_boards[] = {
504 .uart_offset = 8, 510 .uart_offset = 8,
505 .first_offset = 0xC0, 511 .first_offset = 0xC0,
506 }, 512 },
513 [brainboxes_5s1p] = {
514 .flags = FL_BASE2,
515 .num_ports = 5,
516 .base_baud = 921600,
517 .uart_offset = 8,
518 },
507 [sunix_2s1p] = { 519 [sunix_2s1p] = {
508 .flags = FL_BASE0|FL_BASE_BARS, 520 .flags = FL_BASE0|FL_BASE_BARS,
509 .num_ports = 2, 521 .num_ports = 2,