Skip to content

Commit c9a104e

Browse files
Colin Ian Kinggregkh
authored andcommitted
parport: parport_serial: Add WCH CH382L PCIe single parallel port support
The WCH CH382L PCIe adapter has 1 parallel port but unlike the similar WCH CH328 adapter there are no serial ports connected to it. Enable this adapter with the addition of the appropriate PCIe IDs and board support config. PCIe device ID 1c00:3050: 02:00.0 Serial controller: Device 1c00:3050 (rev 10) (prog-if 05 [16850]) Subsystem: Device 1c00:3050 Flags: fast devsel, IRQ 16 I/O ports at 2000 [size=256] Memory at d0000000 (32-bit, prefetchable) [size=32K] I/O ports at 2100 [size=4] Expansion ROM at b0200000 [disabled] [size=32K] Capabilities: [60] Power Management version 3 Capabilities: [68] MSI: Enable- Count=1/32 Maskable+ 64bit+ Capabilities: [80] Express Legacy Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Kernel driver in use: parport_pc Kernel modules: parport_pc, parport_serial Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 3ff1070 commit c9a104e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/parport/parport_serial.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ enum parport_pc_pci_cards {
5858
timedia_9079c,
5959
wch_ch353_1s1p,
6060
wch_ch353_2s1p,
61+
wch_ch382_0s1p,
6162
wch_ch382_2s1p,
6263
brainboxes_5s1p,
6364
sunix_2s1p,
@@ -147,6 +148,7 @@ static struct parport_pc_pci cards[] = {
147148
/* timedia_9079c */ { 1, { { 2, 3 }, } },
148149
/* wch_ch353_1s1p*/ { 1, { { 1, -1}, } },
149150
/* wch_ch353_2s1p*/ { 1, { { 2, -1}, } },
151+
/* wch_ch382_0s1p*/ { 1, { { 2, -1}, } },
150152
/* wch_ch382_2s1p*/ { 1, { { 2, -1}, } },
151153
/* brainboxes_5s1p */ { 1, { { 3, -1 }, } },
152154
/* sunix_2s1p */ { 1, { { 3, -1 }, } },
@@ -252,6 +254,7 @@ static struct pci_device_id parport_serial_pci_tbl[] = {
252254
/* WCH CARDS */
253255
{ 0x4348, 0x5053, PCI_ANY_ID, PCI_ANY_ID, 0, 0, wch_ch353_1s1p},
254256
{ 0x4348, 0x7053, 0x4348, 0x3253, 0, 0, wch_ch353_2s1p},
257+
{ 0x1c00, 0x3050, 0x1c00, 0x3050, 0, 0, wch_ch382_0s1p},
255258
{ 0x1c00, 0x3250, 0x1c00, 0x3250, 0, 0, wch_ch382_2s1p},
256259

257260
/* BrainBoxes PX272/PX306 MIO card */
@@ -494,6 +497,12 @@ static struct pciserial_board pci_parport_serial_boards[] = {
494497
.base_baud = 115200,
495498
.uart_offset = 8,
496499
},
500+
[wch_ch382_0s1p] = {
501+
.flags = FL_BASE0,
502+
.num_ports = 0,
503+
.base_baud = 115200,
504+
.uart_offset = 8,
505+
},
497506
[wch_ch382_2s1p] = {
498507
.flags = FL_BASE0,
499508
.num_ports = 2,

0 commit comments

Comments
 (0)