From: Sebastian Heutling <heutling@who-ing.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] AT91 working SD with u-boot
Date: Thu, 1 Oct 2009 11:28:39 +0200 [thread overview]
Message-ID: <4AC47647.2090603@who-ing.de> (raw)
In-Reply-To: <F32E8C2599F37641BB4E3F3AC4A3C412016D265C5018@ws>
Hi Konrad,
On 10/01/2009 10:33 AM, Konrad Mattheis wrote:
> 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.
No - that is not enough. It just enables the clock for MCI and
configures the pins. But the MCI itself needs to know which slot to
address.
Suppose you want to use both slots at the same time (and the drivers
would support that).
Then you would call:
at91_mci0_hw_init(0, 4)
at91_mci0_hw_init(1, 4)
In order to access both slots the driver (atmel_mci) needs to select
which slot to address. And that is what the SDCSEL field of MCI-SDCR is
for (see also Datasheet of the AT91SAM9G20 35.9.4 (probably at page 607)).
Regards
Sebastian
next prev parent reply other threads:[~2009-10-01 9:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-01 7:22 [U-Boot] [PATCH v3] AT91: Add SD/MMC controller support Sebastian Heutling
2009-10-01 7:59 ` [U-Boot] AT91 working SD with u-boot Konrad Mattheis
2009-10-01 8:25 ` Sebastian Heutling
2009-10-01 8:33 ` Konrad Mattheis
2009-10-01 9:28 ` Sebastian Heutling [this message]
2009-10-04 12:54 ` Albin Tonnerre
2010-05-26 19:03 ` Kalyan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4AC47647.2090603@who-ing.de \
--to=heutling@who-ing.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.