From: Baruch Siach <baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org>
To: Cliff Brake <cliff.brake-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: PXA270 SPI + SD card
Date: Thu, 5 Nov 2009 08:17:21 +0200 [thread overview]
Message-ID: <20091105061721.GA13519@jasper.tkos.co.il> (raw)
In-Reply-To: <f96d234e0911041354p1f11e415g427ec9b74ff4d25b-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Hi Cliff,
On Wed, Nov 04, 2009 at 04:54:18PM -0500, Cliff Brake wrote:
> Also, what SPI mode is typically used for SD? Looks like 0 and 3 are
> the closest (http://elm-chan.org/docs/spi_e.html).
I've found this in drivers/mmc/host/mmc_spi.c:mmc_spi_probe():
/* MMC and SD specs only seem to care that sampling is on the
* rising edge ... meaning SPI modes 0 or 3. So either SPI mode
* should be legit. We'll use mode 0 since the steady state is 0,
* which is appropriate for hotplugging, unless the platform data
* specify mode 3 (if hardware is not compatible to mode 0).
*/
if (spi->mode != SPI_MODE_3)
spi->mode = SPI_MODE_0;
baruch
--
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org - tel: +972.2.679.5364, http://www.tkos.co.il -
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
prev parent reply other threads:[~2009-11-05 6:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-04 21:53 PXA270 SPI + SD card Cliff Brake
[not found] ` <f96d234e0911041353o25aeee4aqbb482f162aaeac5f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-11-04 21:54 ` Cliff Brake
[not found] ` <f96d234e0911041354p1f11e415g427ec9b74ff4d25b-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-11-04 23:27 ` Ned Forrester
2009-11-05 6:17 ` Baruch Siach [this message]
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=20091105061721.GA13519@jasper.tkos.co.il \
--to=baruch-nswtu9s1w3p6gbpvegmw2w@public.gmane.org \
--cc=cliff.brake-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).