mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Steffen Trumtrar <s.trumtrar@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH 00/10] spi: spi-mem and fsl-qspi support
Date: Fri,  3 May 2019 11:33:50 +0200	[thread overview]
Message-ID: <cover.f11bd6763969bb7d206b1b29aa16d5758acb980a.1556875750.git-series.s.trumtrar@pengutronix.de> (raw)

Hi!

This series imports the spi-mem framework from linux into barebox.

The first patches sync the respective driver with linux to ease
porting of the following patches.
Then drivers/spi/spi.c is updated to use the spi-mem framework.
The Freescale QSPI controller driver, which uses this framework,
is ported from linux; the older driver was removed from mainline
linux and wasn't even working correctly.
Finally drivers/mtd/devices/m25p80.c is simplified by using spi-mem.

The series was tested with the Layerscape LS1046a and SocFPGA Cyclone5
SoCs.

Best regards,
Steffen

Steffen Trumtrar (10):
  mtd: spi-nor: cadence: add cqspi_set_protocol
  spi: Generalize SPI "master" to "controller"
  spi: Import more spi mode defines from Linux
  spi: Extend the core to ease integration of SPI memory controllers
  mtd: spi-nor: remove unused write_enable from write_reg
  mtd: spi-nor: remove unused read_xfer/write_xfer hooks
  spi: add driver for Freescale QSPI controller
  mtd: spi-nor: introduce SPI 1-2-2 and SPI 1-4-4 protocols
  mtd: spi-nor: provide default erase_sector implementation
  mtd: devices: m25p80: use the spi_mem_xx() API

 commands/spi.c                        |  16 +-
 drivers/mtd/devices/Kconfig           |   1 +-
 drivers/mtd/devices/m25p80.c          | 158 ++---
 drivers/mtd/spi-nor/cadence-quadspi.c | 257 ++++----
 drivers/mtd/spi-nor/spi-nor.c         | 669 +++++++++++++++------
 drivers/spi/Kconfig                   |  18 +-
 drivers/spi/Makefile                  |   2 +-
 drivers/spi/spi-fsl-qspi.c            | 869 +++++++++++++++++++++++++++-
 drivers/spi/spi-mem.c                 | 524 ++++++++++++++++-
 drivers/spi/spi.c                     | 110 ++-
 include/linux/mtd/spi-nor.h           | 230 +++++--
 include/linux/spi/spi-mem.h           | 307 ++++++++++-
 include/spi/spi.h                     |  95 ++-
 13 files changed, 2777 insertions(+), 479 deletions(-)
 create mode 100644 drivers/spi/spi-fsl-qspi.c
 create mode 100644 drivers/spi/spi-mem.c
 create mode 100644 include/linux/spi/spi-mem.h

base-commit: 9688b49cd3bc0b61a019e8e1311236c9975a0777
-- 
git-series 0.9.1

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

             reply	other threads:[~2019-05-03  9:34 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-03  9:33 Steffen Trumtrar [this message]
2019-05-03  9:33 ` [PATCH 01/10] mtd: spi-nor: cadence: add cqspi_set_protocol Steffen Trumtrar
2019-05-03  9:33 ` [PATCH 02/10] spi: Generalize SPI "master" to "controller" Steffen Trumtrar
2019-05-11  7:36   ` Alexander Kurz
2019-05-16  9:29     ` Steffen Trumtrar
2019-05-03  9:33 ` [PATCH 03/10] spi: Import more spi mode defines from Linux Steffen Trumtrar
2019-05-03  9:33 ` [PATCH 04/10] spi: Extend the core to ease integration of SPI memory controllers Steffen Trumtrar
2019-05-03  9:33 ` [PATCH 05/10] mtd: spi-nor: remove unused write_enable from write_reg Steffen Trumtrar
2019-05-03  9:33 ` [PATCH 06/10] mtd: spi-nor: remove unused read_xfer/write_xfer hooks Steffen Trumtrar
2019-05-03  9:33 ` [PATCH 07/10] spi: add driver for Freescale QSPI controller Steffen Trumtrar
2019-05-03  9:33 ` [PATCH 08/10] mtd: spi-nor: introduce SPI 1-2-2 and SPI 1-4-4 protocols Steffen Trumtrar
2019-05-03  9:33 ` [PATCH 09/10] mtd: spi-nor: provide default erase_sector implementation Steffen Trumtrar
2019-05-03  9:34 ` [PATCH 10/10] mtd: devices: m25p80: use the spi_mem_xx() API Steffen Trumtrar
2019-05-08  8:54 ` [PATCH 00/10] spi: spi-mem and fsl-qspi support Sascha Hauer

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=cover.f11bd6763969bb7d206b1b29aa16d5758acb980a.1556875750.git-series.s.trumtrar@pengutronix.de \
    --to=s.trumtrar@pengutronix.de \
    --cc=barebox@lists.infradead.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