From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Heutling Date: Thu, 1 Oct 2009 09:22:02 +0200 Subject: [U-Boot] [PATCH v3] AT91: Add SD/MMC controller support References: 1252153380-28664-1-git-send-email-albin.tonnerre@free-electrons.com Message-ID: <4AC4589A.9000408@who-ing.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello there, I tried to get mmc working on a board using an at91sam9g20. The mmc-card is wired on slotb. I applied the patches: http://lists.denx.de/pipermail/u-boot/2009-September/060053.html http://lists.denx.de/pipermail/u-boot/2009-August/059456.html http://lists.denx.de/pipermail/u-boot/2009-September/060243.html It didn't work as I always got (apart from the message of a too low clock which I avoided by setting f_min / f_max on my own): mmc: command 8 failed (status: 0x0010c1e5) mmc: command 55 failed (status: 0x0010c1e5) mmc: command 1 failed (status: 0x0010c1e5) Card did not respond to voltage select! So I had a look at linux sources and discovered that the MCI selected the wrong slot. After modifying atmel_mci_set_ios() to set SDCR to use slotb ("mmci_writel(SDCR, sdcr | 1);") I got my card working. Hope this helps someone. Regards Sebastian Heutling