From owner-freebsd-mobile Tue Aug 22 8:22: 8 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from lavender.sanpei.org (ppp171.dialup.st.keio.ac.jp [131.113.27.171]) by hub.freebsd.org (Postfix) with ESMTP id 8A93437B423 for ; Tue, 22 Aug 2000 08:21:54 -0700 (PDT) Received: (from sanpei@localhost) by lavender.sanpei.org (8.11.0/3.7W) id e7MFLnF01171; Wed, 23 Aug 2000 00:21:49 +0900 (JST) Date: Wed, 23 Aug 2000 00:21:49 +0900 (JST) Message-Id: <200008221521.e7MFLnF01171@lavender.sanpei.org> To: freebsd-mobile@FreeBSD.ORG Subject: Re: Simple Technology 16MB Compact Flash Card In-Reply-To: Your message of "Tue, 22 Aug 2000 10:06:37 JST". <200008220106.TAA42871@harmony.village.org> From: sanpei@sanpei.org (MIHIRA Yoshiro) X-Mailer: mnews [version 1.21] 1997-12/23(Tue) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org imp@village.org wrote: >> In message <20000821175655.A82963@superhero.org> Erich Zigler writes: >> : On Mon, Aug 21, 2000 at 04:53:06PM -0600, Warner Losh wrote: >> : >> : > OK. Then it may be the problem that we've seen on a few laptops where >> : > CF cards aren't properly initialized. Likely this is a voltage >> : > issue of some sort. >> : >> : Any idea on a fix? >> >> Try this one: >> >> Index: pccard.c >> =================================================================== >> RCS file: /home/imp/FreeBSD/CVS/src/sys/pccard/pccard.c,v I tested above path to IBM ThinkPad600, unfortunately I could not use Compact Flash Card... --------------- I checked in pcic_power@sys/pccard/pcic.c routine. In below code, re-power pcic with 3.3V. ---- /* Some chips are smarter than us it seems, so if we weren't * allowed to use 5V, try 3.3 instead */ if (!(sp->getb(sp, PCIC_STATUS) & 0x40) && slt->pwr.vcc == 50) { slt->pwr.vcc = 33; slt->pwr.vpp = 0; return (pcic_power(slt)); } ---- But sp->controller was PCIC_I82365 and never set reg |= PCIC_VCC_3V; Because PCIC in this ThinkPad is TI1250, but pcic0 is probed as Intel i82365(PCIC_I82365). I think it needs 3.3V for CF card with TI 1250 PCIC or ThinkPad600. I added below change, I could attach CF card with ThinkPad600!! (but this is quick-hack, Please use **at your own risk**) --- pcic.c.org Wed Aug 23 00:02:32 2000 +++ pcic.c Wed Aug 23 00:02:55 2000 @@ -609,6 +609,7 @@ case PCIC_RF5C396: case PCIC_VLSI: case PCIC_IBM_KING: + case PCIC_I82365: switch(slt->pwr.vpp) { default: return(EINVAL); Cheers. MIHIRA Yoshiro Yokohama, Japan. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message