Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Jun 2011 21:32:14 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r222879 - stable/8/sys/dev/puc
Message-ID:  <201106082132.p58LWEi7048436@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Wed Jun  8 21:32:14 2011
New Revision: 222879
URL: http://svn.freebsd.org/changeset/base/222879

Log:
  MFC 222328:
  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.

Modified:
  stable/8/sys/dev/puc/pucdata.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/dev/puc/pucdata.c
==============================================================================
--- stable/8/sys/dev/puc/pucdata.c	Wed Jun  8 21:29:33 2011	(r222878)
+++ stable/8/sys/dev/puc/pucdata.c	Wed Jun  8 21:32:14 2011	(r222879)
@@ -1292,6 +1292,12 @@ puc_config_timedia(struct puc_softc *sc,
 	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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106082132.p58LWEi7048436>