mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 00/10] spi: spi-mem and fsl-qspi support
@ 2019-05-03  9:33 Steffen Trumtrar
  2019-05-03  9:33 ` [PATCH 01/10] mtd: spi-nor: cadence: add cqspi_set_protocol Steffen Trumtrar
                   ` (10 more replies)
  0 siblings, 11 replies; 14+ messages in thread
From: Steffen Trumtrar @ 2019-05-03  9:33 UTC (permalink / raw)
  To: Barebox List

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

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2019-05-16  9:29 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-03  9:33 [PATCH 00/10] spi: spi-mem and fsl-qspi support Steffen Trumtrar
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox