aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/puc
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2011-05-26 20:54:45 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2011-05-26 20:54:45 +0000
commit9c418f51cada1b995a36303b3c4e6d1909e0a3e1 (patch)
tree2aec2a6a512a4a971ad903004ee37509cd0d2125 /sys/dev/puc
parent7512c508dfe311074ad0435e38329fdc635f7282 (diff)
downloadsrc-9c418f51cada1b995a36303b3c4e6d1909e0a3e1.tar.gz
src-9c418f51cada1b995a36303b3c4e6d1909e0a3e1.zip
For Timedia multiport serial adapters, the first two ports use a SUN1889
which uses a non-standard clock (* 8) while any additional ports use SUN1699 chips which use a standard clock. Tested by: N.J. Mann njm of njm me uk MFC after: 1 week
Notes
Notes: svn path=/head/; revision=222328
Diffstat (limited to 'sys/dev/puc')
-rw-r--r--sys/dev/puc/pucdata.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/puc/pucdata.c b/sys/dev/puc/pucdata.c
index 83b02eafd6ab..3869786b7a1f 100644
--- a/sys/dev/puc/pucdata.c
+++ b/sys/dev/puc/pucdata.c
@@ -1292,6 +1292,12 @@ puc_config_timedia(struct puc_softc *sc, enum puc_cfg_cmd cmd, int port,
uint16_t subdev;
switch (cmd) {
+ case PUC_CFG_GET_CLOCK:
+ if (port < 2)
+ *res = DEFAULT_RCLK * 8;
+ else
+ *res = DEFAULT_RCLK;
+ return (0);
case PUC_CFG_GET_DESC:
snprintf(desc, sizeof(desc),
"Timedia technology %d Port Serial", (int)sc->sc_cfg_data);