LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: "Magnus Damm" <magnus.damm@gmail.com>
To: "David Brownell" <david-b@pacbell.net>
Cc: "Andrew Morton" <akpm@linux-foundation.org>,
spi-devel-general@lists.sourceforge.net,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [patch 2.6.27-git] spi_gpio driver
Date: Tue, 21 Oct 2008 21:40:41 +0900 [thread overview]
Message-ID: <aec7e5c30810210540p6b50562ax50b0cdd9af9e12e7@mail.gmail.com> (raw)
In-Reply-To: <200810192124.36402.david-b@pacbell.net>
On Mon, Oct 20, 2008 at 1:24 PM, David Brownell <david-b@pacbell.net> wrote:
> From: David Brownell <dbrownell@users.sourceforge.net>
>
> Generalize the old at91rm9200 "bootstrap" bitbanging SPI master driver
> as "spi_gpio", so it works with arbitrary GPIOs and can be configured
> through platform_data. Such SPI masters support:
>
> - any number of bus instances (bus_num is the platform_device.id)
> - any number of chipselects (one GPIO per spi_device)
> - all four SPI_MODE values, and SPI_CS_HIGH
> - i/o word sizes from 1 to 32 bits;
> - devices configured as with any other spi_master controller
>
> When configured using platform_data, this provides relatively low clock
> rates. On platforms that support inlined GPIO calls, significantly
> improved transfer speeds are also possible with a semi-custom driver.
> (It's still painful when accessing flash memory, but less so.)
>
> Sanity checked by using this version to replace both native controllers
> on a board with six different SPI slaves, relying on three different
> SPI_MODE_* values and both SPI_CS_HIGH settings for correct operation.
>
> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Works fine on SuperH together with the mmc_spi driver. Thanks!
Acked-by: Magnus Damm <damm@igel.co.jp>
prev parent reply other threads:[~2008-10-21 12:40 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-20 19:46 [PATCH v3] Add SPI over GPIO driver Michael Buesch
2008-10-17 3:14 ` Magnus Damm
2008-10-17 8:52 ` Michael Buesch
2008-10-17 9:52 ` Magnus Damm
2008-10-17 11:18 ` Michael Buesch
2008-10-18 4:36 ` Andrew Morton
2008-10-18 9:32 ` Michael Buesch
2008-10-18 20:41 ` Piotr Skamruk
2008-10-18 20:54 ` David Brownell
2008-10-20 2:44 ` Magnus Damm
2008-10-20 4:16 ` David Brownell
2008-10-20 9:48 ` Michael Buesch
2008-10-20 4:24 ` [patch 2.6.27-git] spi_gpio driver David Brownell
2008-10-20 9:11 ` [spi-devel-general] " Ben Dooks
2008-10-20 8:37 ` David Brownell
2008-10-21 12:40 ` Magnus Damm [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=aec7e5c30810210540p6b50562ax50b0cdd9af9e12e7@mail.gmail.com \
--to=magnus.damm@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=david-b@pacbell.net \
--cc=linux-kernel@vger.kernel.org \
--cc=spi-devel-general@lists.sourceforge.net \
--subject='Re: [patch 2.6.27-git] spi_gpio driver' \
/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
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).