Date: Thu, 9 Nov 2006 01:05:24 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 109587 for review Message-ID: <200611090105.kA915ON6029004@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=109587 Change 109587 by imp@imp_lighthouse on 2006/11/09 01:04:57 Inline a little. Affected files ... .. //depot/projects/arm/src/sys/boot/arm/at91/libat91/sd-card.c#15 edit Differences ... ==== //depot/projects/arm/src/sys/boot/arm/at91/libat91/sd-card.c#15 (text+ko) ==== @@ -362,10 +362,12 @@ MCI_Device.state = AT91C_MCI_IDLE; MCI_Device.SDCard_bus_width = AT91C_MCI_SCDBUS; - AT91F_MCI_Configure(AT91C_BASE_MCI, - AT91C_MCI_DTOR_1MEGA_CYCLES, - AT91C_MCI_PDCMODE, - AT91C_MCI_SDCARD_4BITS_SLOTA); + //* Reset the MCI + AT91C_BASE_MCI->MCI_CR = AT91C_MCI_MCIEN | AT91C_MCI_PWSEN; + AT91C_BASE_MCI->MCI_IDR = 0xFFFFFFFF; + AT91C_BASE_MCI->MCI_DTOR = AT91C_MCI_DTOR_1MEGA_CYCLES; + AT91C_BASE_MCI->MCI_MR = AT91C_MCI_PDCMODE; + AT91C_BASE_MCI->MCI_SDCR = AT91C_MCI_SDCARD_4BITS_SLOTA; MCI_SendCommand(GO_IDLE_STATE_CMD, AT91C_NO_ARGUMENT); for (i = 0; i < 100; i++) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611090105.kA915ON6029004>