From: Can Aydin <can.aydin@locatacorp.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC] [PATCH 0/4] Add support for Freescale's 85xx and P1/P2xxx eSPI controller
Date: Tue, 28 Sep 2010 19:56:48 +1000 [thread overview]
Message-ID: <4CA1BBE0.4050209@locatacorp.com> (raw)
In-Reply-To: <7751C735-9B47-496B-87A8-B8201F5FC562@kernel.crashing.org>
Hi All,
This patch series adds support for the eSPI controller found on the
newer range of Freescale SoCs including the 85xx, P1/P2xx (and I believe
the P4xx) series.
The reason this is an RFC is that unfortunately the hardware on these
chips does not permit indefinite SPI transactions on a given chip
select. A chip select is asserted only when a 'transaction length' has
been passed to the controller. Once the number of characters specified
in the transaction length have been transmitted, the controller decides
that the 'frame' has ended and de-asserts the chip select after a
defined delay. It is not possible to initiate a second transfer without
re-initialising the command register, and hence clearing and
re-asserting a chip select signal.
This patch set addresses the issue by defining a read/write function in
the spi_flash_internal API. Subsequent patches add the freescale eSPI
driver and add support for it in the spansion driver and the P1/P2 board
configuration header.
I'm pretty sure that there are better ways of doing this, especially if
a driver model with support for driver quirks was implemented for
instance. Until then however, I assume having some sort of ability to
use the SPI controller on these boards would be better than not being
able to do anything at all. If anyone has a better solution please feel
free to comment.
Regards,
Can
--
drivers/mtd/spi/spansion.c | 60 ++++++++-
drivers/mtd/spi/spi_flash.c | 38 +++++-
drivers/mtd/spi/spi_flash_internal.h | 9 ++
drivers/spi/Makefile | 1 +
drivers/spi/fsl_espi.c | 251
++++++++++++++++++++++++++++++++++
include/configs/P1_P2_RDB.h | 18 +++
include/fsl_espi.h | 50 +++++++
7 files changed, 419 insertions(+), 8 deletions(-)
mode change 100644 => 100755 drivers/mtd/spi/spansion.c
mode change 100644 => 100755 drivers/mtd/spi/spi_flash.c
mode change 100644 => 100755 drivers/mtd/spi/spi_flash_internal.h
create mode 100755 drivers/spi/fsl_espi.c
create mode 100755 include/fsl_espi.h
next prev parent reply other threads:[~2010-09-28 9:56 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-05 22:14 [U-Boot] [RFC PATCH 0/3] Add device tree support for ARM to U-Boot John Rigby
2010-08-05 22:14 ` [U-Boot] [RFC 1/3] FDT: Add fixup support of multiple banks of memory John Rigby
2010-08-05 23:26 ` Kumar Gala
2010-08-05 23:36 ` John Rigby
2010-08-10 19:39 ` Grant Likely
2010-08-10 20:17 ` Dan Malek
2010-08-10 20:26 ` Grant Likely
2010-08-10 21:17 ` Dan Malek
2010-08-10 21:03 ` John Rigby
2010-08-10 21:09 ` Grant Likely
2010-08-10 22:22 ` Scott Wood
2010-09-28 9:56 ` Can Aydin [this message]
2010-09-28 11:02 ` [U-Boot] [RFC] [PATCH 0/4] Add support for Freescale's 85xx and P1/P2xxx eSPI controller Reinhard Meyer
2010-09-28 11:49 ` Can Aydin
2010-09-28 12:27 ` Can Aydin
2010-09-28 12:46 ` Wolfgang Denk
2010-09-28 13:22 ` Reinhard Meyer
2010-09-28 23:37 ` Can Aydin
2010-09-28 23:50 ` Can Aydin
2010-10-13 10:25 ` Xie Shaohui-B21989
2010-10-27 10:50 ` Can Aydin
2010-08-05 22:14 ` [U-Boot] [RFC 2/3] ARM: WIP: add flat device tree support John Rigby
2010-08-05 22:31 ` Wolfgang Denk
2010-08-05 23:07 ` John Rigby
2010-08-10 19:44 ` Grant Likely
2010-08-10 19:46 ` Grant Likely
2010-08-10 20:23 ` Albert ARIBAUD
2010-08-10 20:48 ` John Rigby
2010-08-10 21:01 ` Wolfgang Denk
2010-08-05 22:14 ` [U-Boot] [RFC 3/3] ARM: add config for beagle with fdt enabled John Rigby
2010-08-05 22:35 ` Wolfgang Denk
2010-08-05 23:04 ` John Rigby
2010-09-01 16:53 ` [U-Boot] [PATCH 0/5] Device tree support for ARM John Rigby
2010-09-01 16:53 ` [U-Boot] [PATCH 1/5] FDT: Add fixup support for multiple banks of memory John Rigby
2010-09-01 16:53 ` [U-Boot] [PATCH 2/5] FDT: only call boot_get_fdt from generic code John Rigby
2010-09-01 16:53 ` [U-Boot] [PATCH 3/5] boot: change some arch ifdefs to feature ifdefs John Rigby
2010-09-01 16:53 ` [U-Boot] [PATCH 4/5] ARM: add flat device tree support John Rigby
2010-10-06 15:26 ` Rob Herring
2010-09-01 16:53 ` [U-Boot] [PATCH 5/5] ARM: enable device tree for beagle John Rigby
2010-09-01 16:59 ` John Rigby
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=4CA1BBE0.4050209@locatacorp.com \
--to=can.aydin@locatacorp.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox