From owner-freebsd-mobile@FreeBSD.ORG Thu Nov 6 22:48:17 2008 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D991106564A; Thu, 6 Nov 2008 22:48:17 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id A36758FC0A; Thu, 6 Nov 2008 22:48:16 +0000 (UTC) (envelope-from mav@FreeBSD.org) X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona-2.1.0 Received: from [212.86.226.226] (account mav@alkar.net HELO mavbook.mavhome.dp.ua) by cmail.optima.ua (CommuniGate Pro SMTP 5.2.9) with ESMTPSA id 227196779; Fri, 07 Nov 2008 00:48:15 +0200 Message-ID: <4913742E.9040801@FreeBSD.org> Date: Fri, 07 Nov 2008 00:48:14 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.17 (X11/20081029) MIME-Version: 1.0 To: lars.engels@0x20.net References: <49130918.5030904@FreeBSD.org> <20081106163729.clcw2eulgk0k4w0c@0x20.net> <49131109.2020601@FreeBSD.org> <20081106.101047.163264510.imp@bsdimp.com> In-Reply-To: <20081106.101047.163264510.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org, freebsd-current@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: RFC: PCI SD host controller driver & mmc/mmcsd modules improvements X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Nov 2008 22:48:17 -0000 M. Warner Losh wrote: > In message: <49131109.2020601@FreeBSD.org> > Alexander Motin writes: > : Lars Engels wrote: > : > 1. How can I tune the PCI configuration? With pciconf -w or so? > : > : Yes. `pciconf -r -b device addr` to read and `pciconf -w -b device addr > : value` to write. > > I have changes that almost make my TI card do it. > > : > 2. Unfortunately the sysctl did not change a thing with regard to the > : > Card reader. > : > : Have you added it to the loader.conf and rebooted? > : > : > 3. I added the chip ID and the second device is now recognized as a > : > sdhci device but still does not see any card inserted: > : > > : > Nov 6 16:32:20 NB0117232 kernel: sdhci1: Hardware doesn't specify base > : > clock frequency. > : > Nov 6 16:32:20 NB0117232 kernel: sdhci1: Hardware doesn't specify > : > timeout clock frequency. > : > Nov 6 16:32:20 NB0117232 kernel: sdhci1: Hardware doesn't report any > : > support voltages. > : > : Looks like it is not enough compatible, or even not compatible. > > Chances are good that you need to the workaround to turn on these > things. Here is some datasheet I have found for R5C832, but it looks not too detailed to say something for sure: http://www.aeneas.com.cn/PDF/Ricoh/2005/R5C832E1%5B1%5D.00.pdf At least it says that it's MMC interface is single-bit, while standard SD host controller has 4 bit's bus. -- Alexander Motin