aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/parport
diff options
context:
space:
mode:
authorSergej Pupykin <ml@sergej.pp.ru>2014-11-06 06:36:31 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-06 17:58:21 -0500
commit2fdd8c8c5304901fa7dbb2ce5dbc90a1984cee3d (patch)
treefdf14940a51b0307b951a1ba88ed6f6b26e0cc17 /drivers/parport
parentcab68f89546ba5a04bf28aaeaca841d4ccc2fd52 (diff)
parport: Add support for the WCH382 2S/1P multi-IO card
WCH382 is a PCI-E card with 1 LPT and 2 DB9 COM ports detected as Serial controller: Device 1c00:3250 (rev 10) (prog-if 05 [16850]) Signed-off-by: Sergej Pupykin <ml@sergej.pp.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/parport')
-rw-r--r--drivers/parport/parport_serial.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/parport/parport_serial.c b/drivers/parport/parport_serial.c
index ee932004724f..e15b4845f7c6 100644
--- a/drivers/parport/parport_serial.c
+++ b/drivers/parport/parport_serial.c
@@ -64,6 +64,7 @@ enum parport_pc_pci_cards {
64 timedia_9079c, 64 timedia_9079c,
65 wch_ch353_1s1p, 65 wch_ch353_1s1p,
66 wch_ch353_2s1p, 66 wch_ch353_2s1p,
67 wch_ch382_2s1p,
67 sunix_2s1p, 68 sunix_2s1p,
68}; 69};
69 70
@@ -151,6 +152,7 @@ static struct parport_pc_pci cards[] = {
151 /* timedia_9079c */ { 1, { { 2, 3 }, } }, 152 /* timedia_9079c */ { 1, { { 2, 3 }, } },
152 /* wch_ch353_1s1p*/ { 1, { { 1, -1}, } }, 153 /* wch_ch353_1s1p*/ { 1, { { 1, -1}, } },
153 /* wch_ch353_2s1p*/ { 1, { { 2, -1}, } }, 154 /* wch_ch353_2s1p*/ { 1, { { 2, -1}, } },
155 /* wch_ch382_2s1p*/ { 1, { { 2, -1}, } },
154 /* sunix_2s1p */ { 1, { { 3, -1 }, } }, 156 /* sunix_2s1p */ { 1, { { 3, -1 }, } },
155}; 157};
156 158
@@ -257,6 +259,7 @@ static struct pci_device_id parport_serial_pci_tbl[] = {
257 /* WCH CARDS */ 259 /* WCH CARDS */
258 { 0x4348, 0x5053, PCI_ANY_ID, PCI_ANY_ID, 0, 0, wch_ch353_1s1p}, 260 { 0x4348, 0x5053, PCI_ANY_ID, PCI_ANY_ID, 0, 0, wch_ch353_1s1p},
259 { 0x4348, 0x7053, 0x4348, 0x3253, 0, 0, wch_ch353_2s1p}, 261 { 0x4348, 0x7053, 0x4348, 0x3253, 0, 0, wch_ch353_2s1p},
262 { 0x1c00, 0x3250, 0x1c00, 0x3250, 0, 0, wch_ch382_2s1p},
260 263
261 /* 264 /*
262 * More SUNIX variations. At least one of these has part number 265 * More SUNIX variations. At least one of these has part number
@@ -494,6 +497,13 @@ static struct pciserial_board pci_parport_serial_boards[] = {
494 .base_baud = 115200, 497 .base_baud = 115200,
495 .uart_offset = 8, 498 .uart_offset = 8,
496 }, 499 },
500 [wch_ch382_2s1p] = {
501 .flags = FL_BASE0,
502 .num_ports = 2,
503 .base_baud = 115200,
504 .uart_offset = 8,
505 .first_offset = 0xC0,
506 },
497 [sunix_2s1p] = { 507 [sunix_2s1p] = {
498 .flags = FL_BASE0|FL_BASE_BARS, 508 .flags = FL_BASE0|FL_BASE_BARS,
499 .num_ports = 2, 509 .num_ports = 2,