Date: Thu, 22 Jan 2009 17:55:31 +0200 From: Krassimir Slavchev <krassi@bulinfo.net> To: freebsd-arm@freebsd.org Subject: Re: Mount root from SD card?(solved!) Message-ID: <497896F3.9030908@bulinfo.net> In-Reply-To: <20090122151340.GE50103@cicely7.cicely.de> References: <20090121.100533.-1955669401.imp@bsdimp.com> <20090121.101459.2022307528.imp@bsdimp.com> <49776734.8030805@FreeBSD.org> <20090121.122842.-1582190967.imp@bsdimp.com> <20090122105650.GB50103@cicely7.cicely.de> <49787314.3070004@FreeBSD.org> <20090122142015.GC50103@cicely7.cicely.de> <49788702.9010808@FreeBSD.org> <20090122151340.GE50103@cicely7.cicely.de>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig092BE48745BA0D0C1546363B Content-Type: multipart/mixed; boundary="------------090002080101070607040400" This is a multi-part message in MIME format. --------------090002080101070607040400 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, We have to send the command before enabling the PDC for reading. I do not know why in the datasheet is opposite! See the attached patch. Thanks to All! Best Regards --------------090002080101070607040400 Content-Type: text/plain; name="at91_mci.c.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline; filename="at91_mci.c.diff" Index: at91_mci.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- at91_mci.c (revision 187590) +++ at91_mci.c (working copy) @@ -199,7 +199,7 @@ goto out; } sc->host.f_min =3D 375000; - sc->host.f_max =3D at91_master_clock / 2; /* Typically 30MHz */ + sc->host.f_max =3D AT91C_MASTER_CLOCK / 2; /* Typically 30MHz */ sc->host.host_ocr =3D MMC_OCR_320_330 | MMC_OCR_330_340; if (sc->wire4) sc->host.caps =3D MMC_CAP_4_BIT_DATA; @@ -399,8 +399,8 @@ WR4(sc, MCI_ARGR, cmd->arg); if (cmdr & MCI_CMDR_TRCMD_START) { if (cmdr & MCI_CMDR_TRDIR) { + WR4(sc, MCI_CMDR, cmdr); WR4(sc, PDC_PTCR, PDC_PTCR_RXTEN); - WR4(sc, MCI_CMDR, cmdr); } else { WR4(sc, MCI_CMDR, cmdr); WR4(sc, PDC_PTCR, PDC_PTCR_TXTEN); --------------090002080101070607040400-- --------------enig092BE48745BA0D0C1546363B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFJeJb3xJBWvpalMpkRAv80AJ9cIvsG8zH0P9ClSolZNAcMmnfNDQCggFMh 94JiNAZJSRIkkQTrvzoEqzE= =aklO -----END PGP SIGNATURE----- --------------enig092BE48745BA0D0C1546363B--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?497896F3.9030908>