From owner-freebsd-arm@FreeBSD.ORG Wed Jan 11 02:06:54 2012 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B1D21065670 for ; Wed, 11 Jan 2012 02:06:54 +0000 (UTC) (envelope-from mcgovern@beta.com) Received: from spoon.beta.com (spoon.beta.com [199.165.180.2]) by mx1.freebsd.org (Postfix) with ESMTP id B8DFE8FC18 for ; Wed, 11 Jan 2012 02:06:53 +0000 (UTC) Received: from [199.165.180.41] (dhcp11.beta.com [199.165.180.41]) by spoon.beta.com (8.14.4/8.14.4) with ESMTP id q0B1fcW1090670; Tue, 10 Jan 2012 20:41:38 -0500 (EST) (envelope-from mcgovern@beta.com) From: "Brian J. McGovern" To: freebsd-arm@freebsd.org, mrossi@swin.edu.au, matthieu.kraus@s2008.tu-chemnitz.de In-Reply-To: <20120107120005.E88D210656A6@hub.freebsd.org> References: <20120107120005.E88D210656A6@hub.freebsd.org> Content-Type: text/plain; charset="us-ascii" Date: Tue, 10 Jan 2012 21:41:37 -0500 Message-ID: <1326249697.1424.4.camel@fbsd-82.cisco.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=1.0 required=5.0 tests=KHOP_DYNAMIC, RP_MATCHES_RCVD, S25R_6 autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on spoon.beta.com Cc: Subject: Re: SDIO driver for OpenRD Ultimate/ Dreamplug X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jan 2012 02:06:54 -0000 > note that the FDT gpio part for sdio is ignored in the driver and > wasn't present in http://people.freebsd.org/~raj/misc/mv_sdio.c > > instead the gpio pin settings are hardcoded via #defines in the > modified mv_sdio.c which may lead to issues. > > on another note, the gpio usage isn't strictly necessary. those pins > are used to get gpio interrupts for card detection, however they > aren't connected on all kirkwood boards afaik, so using them despite > them not being connected in hardware or them not being properly set in > the MPP config may lead to issues as this breaks the card detection > and hence may lead to kernel panics and/or undetected cards. > > as a simple workaround just commenting out the pin #defines or using > the original mv_sdio.c should work just fine in which case it'll fall > back to polling accordingly. > > Matthieu Could someone follow up with a howto if they get something working? I've been banging my head against the wall for a bit on this, and the closest I can get is the SD card working if the card is inserted after boot is complete (the kernel panics if the card is already inserted on boot) with the patches from http://lists.freebsd.org/pipermail/freebsd-arm/2011-May/002884.html .