From owner-freebsd-arm@FreeBSD.ORG Thu Jun 7 20:05:21 2007 Return-Path: X-Original-To: arm@freebsd.org Delivered-To: freebsd-arm@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3B96516A468 for ; Thu, 7 Jun 2007 20:05:21 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id A88ED13C48A for ; Thu, 7 Jun 2007 20:05:20 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id l57K5FJb072775; Thu, 7 Jun 2007 22:05:15 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id l57K56FG087185 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 7 Jun 2007 22:05:07 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id l57K561B025989; Thu, 7 Jun 2007 22:05:06 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id l57K561d025988; Thu, 7 Jun 2007 22:05:06 +0200 (CEST) (envelope-from ticso) Date: Thu, 7 Jun 2007 22:05:06 +0200 From: Bernd Walter To: Warner Losh Message-ID: <20070607200505.GO16463@cicely12.cicely.de> References: <50392.2001:6f8:101e:0:20e:cff:fe6d:6adb.1181235257.squirrel@webmail.alpha-tierchen.de> <20070607180946.GK16463@cicely12.cicely.de> <49754.2001:6f8:101e:0:20e:cff:fe6d:6adb.1181244172.squirrel@webmail.alpha-tierchen.de> <20070607.133456.74668036.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070607.133456.74668036.imp@bsdimp.com> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cicely12.cicely.de Cc: arm@freebsd.org, bkoenig@alpha-tierchen.de, ticso@cicely.de Subject: Re: 4-bit SD Card mode X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 20:05:21 -0000 On Thu, Jun 07, 2007 at 01:34:56PM -0600, Warner Losh wrote: > I'm not sure I like this at all. The devices shouldn't be setting up > the pins for that device. In some cases, they can't know how to do > that, and this is one of them. The device has no way of knowing if > all 4 wires are connected, or just 1 and the 'spare' lines are used > for GPIO. There are similar problems with the serial ports and the > ethernet. Absolutely - the MCI driver can't know the hardware. In fact it is routing the controller IO to pins, which is hardware related. > Does the boot loader you are using at least store the board ID in the > place that Linux expects it? Even then I don't really like this idea - at least not as a gerneral one. Many boards, including mine, have GPIO header, allowing the system integrator to use them for whatever they like. I don't see it sensible to introduce artificial different board-names for different uses. With the current system it is possible to have all drivers in the kernel and switch GPIO functionality even from userland. I don't see a good reason why the taskit board shouldn't get an updated firmware, which setups SD. FreeBSD even comes with source, which is able to do this in many cases. If it is really impossible, then this should at least be done in a board specific file and not spread into several drivers. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de