[U-Boot] [PATCH v2a] AT91: add SD/MMC support
Reinhard Meyer
u-boot at emk-elektronik.de
Tue Aug 17 12:42:23 CEST 2010
Dear Schleifer, Alexander,
> Hello Reinhard,
>
> thanks for your reply.
> I checked the register settings and sorted out, that the SDCBUS was initialized in 4-bit mode by the bootstrap.
>
> So I added the explicit initialization when port A is used:
>
> #if defined(CONFIG_ATMEL_MCI_PORTB)
> mmci_writel(SDCR, (MMCI_BF(SCDSEL, 1)
> | MMCI_BF(SCDBUS, 0)));
> #else
> mmci_writel(SDCR, (MMCI_BF(SCDSEL, 0)
> | MMCI_BF(SCDBUS, 0)));
> #endif
Arghh, thats why getting the "geometry" worked, but not a block read.
And you were right, the new driver would have handled that correctly :)
Since currently the new driver is among the "newest" in my series of
changes here, I'll have to try to rebase to get it to the "oldest"
position.
Reinhard
More information about the U-Boot
mailing list