[PATCH 00/10] spi: spi-mem and fsl-qspi support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux