TI-1420 PCMCIA Chipset Problems

M. Warner Losh imp at bsdimp.com
Sun Jun 22 16:34:15 PDT 2003


[[ Private email cc'd to mobile to make things into the archive, hope
   it is OK with marius ]]

In message: <20030622202141.GV87417 at marius.org>
            Marius Strom <marius at marius.org> writes:
: Where can I get the o2micro workaround code?  I have no problem merging
: existing patch code in to see if that fixes the cbb problems.

Right now it is in sys/dev/pccbb/pccbb.c.  There are two places where
it is relevant.  Rather than try to describe what to do, here's a
patch.  It isn't good enough to commit, but it might help you out none
the less.

Warner

Index: pccbb.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/pccbb/pccbb.c,v
retrieving revision 1.78
diff -u -r1.78 pccbb.c
--- pccbb.c	12 Jun 2003 06:06:14 -0000	1.78
+++ pccbb.c	22 Jun 2003 23:32:29 -0000
@@ -486,7 +486,7 @@
 		 * on some machines.
 		 */
 		pci_write_config(sc->dev, CBBR_MMCTRL, 0, 4);
-		break;
+/*		break; */
 	case CB_O2MICRO:
 		/*
 		 * Issue #1: INT# generated at the same time as
@@ -1206,7 +1206,7 @@
 	if (cbb_get(sc, CBB_SOCKET_CONTROL) == sock_ctrl)
 		return (1); /* no change necessary */
 	DEVPRINTF((sc->dev, "cbb_power: %dV\n", volts));
-	if (volts != 0 && sc->chipset == CB_O2MICRO)
+	if (volts != 0 /* && sc->chipset == CB_O2MICRO*/ )
 		reg = cbb_o2micro_power_hack(sc);
 
 	cbb_set(sc, CBB_SOCKET_CONTROL, sock_ctrl);
@@ -1248,7 +1248,7 @@
 	}
 	retval = 1;
 done:;
-	if (volts != 0 && sc->chipset == CB_O2MICRO)
+	if (volts != 0 /* && sc->chipset == CB_O2MICRO */)
 		cbb_o2micro_power_hack2(sc, reg);
 	return (retval);
 }


More information about the freebsd-mobile mailing list