Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jun 2007 18:54:17 +0200 (CEST)
From:      =?iso-8859-1?Q?Bj=F6rn_K=F6nig?= <bkoenig@alpha-tierchen.de>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        arm@freebsd.org
Subject:   Re: 4-bit SD Card mode
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>

next in thread | previous in thread | raw e-mail | index | archive | help
------=_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--





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50392.2001:6f8:101e:0:20e:cff:fe6d:6adb.1181235257.squirrel>