From: Reinhard Meyer Date: Tue, 17 Aug 2010 12:42:23 +0200 Subject: [U-Boot] [PATCH v2a] AT91: add SD/MMC support In-Reply-To: <6118D856B07F02449C470CE4DA6B1BD3A4035E812C@ise-exchange.ise.de> References: <4C308A84.2040208@emk-elektronik.de> <4C602153.8050705@emk-elektronik.de> <4C6022AC.4020507@emk-elektronik.de> <29427373.post@talk.nabble.com> <4C6529C1.10706@emk-elektronik.de> <6118D856B07F02449C470CE4DA6B1BD3A4035E8005@ise-exchange.ise.de> <4C658F82.2060306@emk-elektronik.de> <6118D856B07F02449C470CE4DA6B1BD3A4035E8078@ise-exchange.ise.de> <4C690FEC.6040506@emk-elektronik.de> <6118D856B07F02449C470CE4DA6B1BD3A4035E812C@ise-exchange.ise.de> Message-ID: <4C6A678F.9040406@emk-elektronik.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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