diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-12-07 03:59:26 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-12-07 03:59:26 +0000 |
commit | 6e07d2159b98f65ab7c01a6131a28d7f1c5db13c (patch) | |
tree | 458ee4c1f071fc84feda7cabba1e571e526b2526 /sys | |
parent | d1cc3a30c282545c215e4d787fd652d389ef909d (diff) |
support WCH2 CH351 puc
from Dmitry Alenichev
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/pcidevs | 3 | ||||
-rw-r--r-- | sys/dev/pci/pucdata.c | 10 |
2 files changed, 11 insertions, 2 deletions
diff --git a/sys/dev/pci/pcidevs b/sys/dev/pci/pcidevs index b12f0106352..acac885ace2 100644 --- a/sys/dev/pci/pcidevs +++ b/sys/dev/pci/pcidevs @@ -1,4 +1,4 @@ -$OpenBSD: pcidevs,v 1.1751 2014/12/06 02:47:16 jsg Exp $ +$OpenBSD: pcidevs,v 1.1752 2014/12/07 03:59:25 deraadt Exp $ /* $NetBSD: pcidevs,v 1.30 1997/06/24 06:20:24 thorpej Exp $ */ /* @@ -4810,6 +4810,7 @@ product MUTECH MV1000 0x0001 MV1000 /* Nanjing QinHeng Electronics products */ product WCH CH352 0x3253 CH352 +product WCH2 CH351 0x2273 CH351 product WCH2 CH382_1 0x3253 CH382 product WCH2 CH382_2 0x3250 CH382 diff --git a/sys/dev/pci/pucdata.c b/sys/dev/pci/pucdata.c index aec881314ea..38f1d96fa90 100644 --- a/sys/dev/pci/pucdata.c +++ b/sys/dev/pci/pucdata.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pucdata.c,v 1.94 2014/09/22 21:16:20 sasano Exp $ */ +/* $OpenBSD: pucdata.c,v 1.95 2014/12/07 03:59:25 deraadt Exp $ */ /* $NetBSD: pucdata.c,v 1.6 1999/07/03 05:55:23 cgd Exp $ */ /* @@ -2072,6 +2072,14 @@ const struct puc_device_description puc_devs[] = { { PUC_COM_POW2(0), 0x10, 0x0000 }, }, }, + { /* "WinChipHead CH351 (2S)", */ + { PCI_VENDOR_WCH2, PCI_PRODUCT_WCH2_CH351, 0, 0 }, + { 0xffff, 0xffff, 0, 0 }, + { + { PUC_COM_POW2(0), 0x10, 0x0000 }, + { PUC_COM_POW2(0), 0x14, 0x0000 }, + }, + }, { /* "WinChipHead CH352", */ { PCI_VENDOR_WCH, PCI_PRODUCT_WCH_CH352, 0, 0 }, { 0xffff, 0xffff, 0, 0 }, |