Date: Wed, 23 Aug 2000 00:21:49 +0900 (JST) From: sanpei@sanpei.org (MIHIRA Yoshiro) To: freebsd-mobile@FreeBSD.ORG Subject: Re: Simple Technology 16MB Compact Flash Card Message-ID: <200008221521.e7MFLnF01171@lavender.sanpei.org> In-Reply-To: Your message of "Tue, 22 Aug 2000 10:06:37 JST". <200008220106.TAA42871@harmony.village.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200008221521.e7MFLnF01171>