summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2024-11-09 10:23:07 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2024-11-09 10:23:07 +0000
commit08c1efd9fd8be29c24e102eb3dae626d83630e42 (patch)
tree9a627f909c3a2e327fa2dc8a9d57aedeadfcdae7 /sys/dev
parentdb96d01b9e4ca3a6c9fe2000362e39b71009dcd5 (diff)
Add support for Exar XR17V352, submitted by Sean on tech@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/pcidevs3
-rw-r--r--sys/dev/pci/puc.c5
-rw-r--r--sys/dev/pci/pucdata.c11
3 files changed, 15 insertions, 4 deletions
diff --git a/sys/dev/pci/pcidevs b/sys/dev/pci/pcidevs
index 55825820780..847d101ff1b 100644
--- a/sys/dev/pci/pcidevs
+++ b/sys/dev/pci/pcidevs
@@ -1,4 +1,4 @@
-$OpenBSD: pcidevs,v 1.2093 2024/11/08 11:57:53 stsp Exp $
+$OpenBSD: pcidevs,v 1.2094 2024/11/09 10:23:06 miod Exp $
/* $NetBSD: pcidevs,v 1.30 1997/06/24 06:20:24 thorpej Exp $ */
/*
@@ -3222,6 +3222,7 @@ product EUMITCOM WL11000P 0x1100 WL11000P
product EXAR XR17C152 0x0152 XR17C152
product EXAR XR17C154 0x0154 XR17C154
product EXAR XR17C158 0x0158 XR17C158
+product EXAR XR17V352 0x0352 XR17V352
product EXAR XR17V354 0x0354 XR17V354
/* FORE products */
diff --git a/sys/dev/pci/puc.c b/sys/dev/pci/puc.c
index 4c7b415137c..30e191bd270 100644
--- a/sys/dev/pci/puc.c
+++ b/sys/dev/pci/puc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: puc.c,v 1.31 2022/03/11 18:00:51 mpi Exp $ */
+/* $OpenBSD: puc.c,v 1.32 2024/11/09 10:23:06 miod Exp $ */
/* $NetBSD: puc.c,v 1.3 1999/02/06 06:29:54 cgd Exp $ */
/*
@@ -161,7 +161,8 @@ puc_pci_attach(struct device *parent, struct device *self, void *aux)
PCI_PRODUCT(pa->pa_id), PCI_VENDOR(subsys), PCI_PRODUCT(subsys));
if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_EXAR &&
- PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_EXAR_XR17V354)
+ (PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_EXAR_XR17V352 ||
+ PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_EXAR_XR17V354))
sc->sc_xr17v35x = 1;
puc_print_ports(sc->sc_desc);
diff --git a/sys/dev/pci/pucdata.c b/sys/dev/pci/pucdata.c
index f3325a1d99c..c785ae2b85a 100644
--- a/sys/dev/pci/pucdata.c
+++ b/sys/dev/pci/pucdata.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pucdata.c,v 1.120 2024/03/06 00:11:25 jsg Exp $ */
+/* $OpenBSD: pucdata.c,v 1.121 2024/11/09 10:23:06 miod Exp $ */
/* $NetBSD: pucdata.c,v 1.6 1999/07/03 05:55:23 cgd Exp $ */
/*
@@ -2156,6 +2156,15 @@ const struct puc_device_description puc_devs[] = {
},
},
+ { /* Exar XR17V352 Dual UART */
+ { PCI_VENDOR_EXAR, PCI_PRODUCT_EXAR_XR17V352, 0, 0 },
+ { 0xffff, 0xffff, 0, 0 },
+ {
+ { PUC_PORT_COM_XR17V35X, 0x10, 0x0000 },
+ { PUC_PORT_COM_XR17V35X, 0x10, 0x0400 },
+ },
+ },
+
{ /* Exar XR17V354 Quad UART */
{ PCI_VENDOR_EXAR, PCI_PRODUCT_EXAR_XR17V354, 0, 0 },
{ 0xffff, 0xffff, 0, 0 },