From: Albin Tonnerre <albin.tonnerre@free-electrons.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] at91sam9g45ekes SDHC/MMC
Date: Sat, 24 Apr 2010 01:21:20 +0200 [thread overview]
Message-ID: <20100423232047.GC2984@pc-ran3241> (raw)
In-Reply-To: <u2i2acbd3e41004231458n5342863cr3524415a960a831@mail.gmail.com>
On Fri, 23 Apr 2010 16:58 -0500, Andy Fleming wrote :
> On Thu, Apr 22, 2010 at 7:51 PM, Rob Emanuele <rob@emanuele.us> wrote:
> > Hi Henry & U-Boot Community,
> >
> > I've been experiencing the same errors and frustration you have.
> >
> > So I've been looking at this code and these patch sets for a day or
> > two now. ?I've done that in conjunction with reading the SD card spec:
> > http://www.sdcard.org/developers/tech/sdcard/pls/
> >
> > I've come to the conclusion that this code as it stands will not work
> > with any card that conforms to the SD Physical Layer Simplified
> > Specification Version 2.0. ?This includes all SDHC cards and some
> > non-HC cards that conform to version 2.0. ?I have a few 1GB cards that
> > work just fine with the atmel_mci.c code on a 'G45 as it was in rev
> > 95c44ec485b46ffb43dbdaa299f1491a500fdadf .
> >
> > If your SD card is newer, you'll see in the for loop in "sd_init_card"
> > in atmel_mci.c time out. ?In the 2.0 spec, you need to perform a CMD8
> > (SEND_IF_COND) first to see if your card is a 2.0 card. ?In CMD8 you
> > tell the card the voltages you support and if you support HC cards.
> > Once you send it the right data there, then ACMD41 will not have its
> > BUSY bit set. ?That's all well and good, but additionally the CSD
> > register is in a new format and that needs updating before any of this
> > will work.
>
>
> The best solution is to use the MMC framework, which *does* do all of
> these things that you suggest. It should be fairly straightforward to
> port the atmel_mci driver to this framework. If you see something
> lacking, feel free to mention it, or modify the framework. :)
I did port the atmel_mci driver to the MMC framework and posted the results on
this mailing list a few months back. However, some people apparently experienced
issues I have never been able to reproduce, and got few review.
I recently adapted the AT91 SD/MMC support patch and the atmel_mci port to use
the new C structures access, I'll repost it in a couple days in case anyone's
interested.
Cheers,
--
Albin Tonnerre, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com
next prev parent reply other threads:[~2010-04-23 23:21 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-15 19:51 [U-Boot] at91sam9g45ekes SDHC/MMC Henry Súcart
2010-03-15 20:10 ` Albin Tonnerre
2010-03-15 21:40 ` Henry Súcart
2010-03-15 22:15 ` Albin Tonnerre
2010-03-16 12:30 ` Henry Súcart
2010-03-16 20:36 ` Albin Tonnerre
2010-03-16 22:08 ` Henry Súcart
2010-03-17 19:23 ` Henry Súcart
2010-04-06 9:57 ` Ulf Samuelsson
2010-04-12 13:55 ` Henry Súcart
2010-04-23 0:51 ` Rob Emanuele
2010-04-23 6:24 ` Samuelsson, Ulf
2010-04-23 21:58 ` Andy Fleming
2010-04-23 23:21 ` Albin Tonnerre [this message]
2010-04-24 1:18 ` Andy Fleming
2010-04-28 20:17 ` Robert Emanuele
2010-05-03 14:45 ` Henry Súcart
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=20100423232047.GC2984@pc-ran3241 \
--to=albin.tonnerre@free-electrons.com \
--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.