From owner-freebsd-arm@FreeBSD.ORG Thu Jun 7 16:54:24 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 ED19D16A400 for ; Thu, 7 Jun 2007 16:54:24 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from mail.liberty-hosting.de (mail.smartterra.de [195.225.132.203]) by mx1.freebsd.org (Postfix) with ESMTP id AA3EA13C48A for ; Thu, 7 Jun 2007 16:54:24 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from mail.liberty-hosting.de ([195.225.132.203]) by localhost (liberty-mail [195.225.132.203]) (amavisd-new, port 10024) with ESMTP id 71783-01; Thu, 7 Jun 2007 18:54:20 +0200 (CEST) Received: from home.alpha-tierchen.de (port-212-202-170-5.dynamic.qsc.de [212.202.170.5]) by mail.liberty-hosting.de (Postfix) with ESMTP id CB80715A7FD; Thu, 7 Jun 2007 18:54:19 +0200 (CEST) Received: from webmail.alpha-tierchen.de (localhost [127.0.0.1]) by home.alpha-tierchen.de (Postfix) with ESMTP id 79D7145046; Thu, 7 Jun 2007 18:54:17 +0200 (CEST) Received: from 2001:6f8:101e:0:20e:cff:fe6d:6adb (SquirrelMail authenticated user bkoenig) by webmail.alpha-tierchen.de with HTTP; Thu, 7 Jun 2007 18:54:17 +0200 (CEST) Message-ID: <50392.2001:6f8:101e:0:20e:cff:fe6d:6adb.1181235257.squirrel@webmail.alpha-tierchen.de> In-Reply-To: <20070607.093710.-1297711916.imp@bsdimp.com> References: <54244.2001:6f8:101e:0:20e:cff:fe6d:6adb.1181211368.squirrel@webmail.alpha-tierchen.de> <20070607105306.GH16463@cicely12.cicely.de> <64329.2001:6f8:101e:0:20e:cff:fe6d:6adb.1181214774.squirrel@webmail.alpha-tierchen.de> <20070607.093710.-1297711916.imp@bsdimp.com> Date: Thu, 7 Jun 2007 18:54:17 +0200 (CEST) From: =?iso-8859-1?Q?Bj=F6rn_K=F6nig?= To: "M. Warner Losh" User-Agent: SquirrelMail/1.4.10a MIME-Version: 1.0 Content-Type: multipart/mixed;boundary="----=_20070607185417_28858" X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: by amavisd-new at mail.smartterra.de Cc: arm@freebsd.org Subject: Re: 4-bit SD Card mode 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: Thu, 07 Jun 2007 16:54:25 -0000 ------=_20070607185417_28858 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit M. Warner Losh schrieb: > If you come up with something that works, we can get it into the > tree. Apropos, what about this one that is attached to this mail? You need it if the boot loader hasn't setup the MCI. Björn ------=_20070607185417_28858 Content-Type: text/x-diff; name="kb920x_machdep.c.diff" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="kb920x_machdep.c.diff" --- src/sys/arm/at91/kb920x_machdep.c Wed May 23 13:20:50 2007 +++ src/sys/arm/at91/kb920x_machdep.c Thu Jun 7 11:00:27 2007 @@ -250,6 +250,12 @@ AT91C_PIO_PB16 | AT91C_PIO_PB17 | AT91C_PIO_PB18 | AT91C_PIO_PB19); #endif + /* setup PIO for MCI */ + at91_pio_use_gpio(AT91RM92_PIOB_BASE, AT91C_PIO_PB7); + at91_pio_gpio_output(AT91RM92_PIOB_BASE, AT91C_PIO_PB7, 0); + at91_pio_use_periph_a(AT91RM92_PIOA_BASE, AT91C_PA28_MCCDA | AT91C_PA29_MCDA0 | AT91C_PA27_MCCK, 0); + at91_pio_use_periph_b(AT91RM92_PIOB_BASE, AT91C_PB3_MCDA1 | AT91C_PB4_MCDA2 | AT91C_PB5_MCDA3, 0); + return (ramsize()); } ------=_20070607185417_28858--