
Hi Sebastian,
yes I'm using an AT91SAM9G20-EK Rev.c with two SD slots. I used slot a but I think you just have to init slot b.
in PatchV3 you can read:
at91_mci0_hw_init(int slot, int bus_width)
switch (slot) { case 0: ..... case 1:
So I think you just have to call at91_mci0_hw_init(1,4) for slot b.
bye Konrad
-----Ursprüngliche Nachricht----- Von: Sebastian Heutling [mailto:heutling@who-ing.de] Gesendet: Donnerstag, 1. Oktober 2009 10:26 An: Konrad Mattheis Cc: u-boot@lists.denx.de Betreff: Re: AT91 working SD with u-boot
Hi Konrad,
are you using the AT91SAM9G20-EK?
In that case the difference between us is that I'm working on a different board which is using the slotb MCI while the AT91SAM9G20-EK uses slota.
In case of slota it just worked because MCI_SDCR is 0 on reset but for slotb the SDCSEL field must be set to 1.
Regards
Sebastian Heutling
On 10/01/2009 09:59 AM, Konrad Mattheis wrote:
Hi,
for me this is working:
Downloaded u-boot 2009.08
file cpu/arm926ejs/at91/at91sam9260_devices.c
changed:
#if defined(CONFIG_HAS_DATAFLASH)
to:
#if defined(CONFIG_HAS_DATAFLASH) || defined(CONFIG_ATMEL_SPI)
patches:
SOC headers: http://lists.denx.de/pipermail/u-boot/2009-September/060053.html
SD Patch V3 http://lists.denx.de/pipermail/u-boot/2009-September/060243.html
MCI support http://lists.denx.de/pipermail/u-boot/2009-August/059595.html
add to board init code:
at91_mciX_hw_init (X for mci unit 0 / 1) for parameters have a look
at cpu/arm926ejs/at91/at91sam9260_devices.c
bye Konrad Mattheis