mbox series

[v2,0/2] add broadcom spi driver

Message ID 20200517072412.19416-1-rayagonda.kokatanur@broadcom.com
Headers show
Series add broadcom spi driver | expand

Message

Rayagonda Kokatanur May 17, 2020, 7:24 a.m. UTC
This patchset,
-adds Broadcom SPI driver for iproc-based platforms and
-extends Micron SPI commands for dual and quad SPI transfers on Micon SPI.

Changes from v1:
 -Address review comments from Jagan Teki,
  Remove flash opcode from driver and use include/linux/mtd/spi-nor.h,
  Remove CONFIG_BCM_IPROC_USE_BSPI, handle via driver data

 -Address self review comments,
  Remove REG_WR, REG_RD, REG_SET, REG_CLR and use writel, readl,
  setbits_le32 and clrbits_le32 respectively,
  Rename priv data struct variables mspi_hw. bspi_hw, bspi_hw_raf to
  mspi, bspi, baspi_raf respectively,
  Remove struct bcmspi_platdata.

Rayagonda Kokatanur (2):
  driver: spi: add brcm iproc qspi support.
  drivers: spi: add commands for micron SPI

 drivers/spi/Kconfig      |   6 +
 drivers/spi/Makefile     |   1 +
 drivers/spi/iproc_qspi.c | 808 +++++++++++++++++++++++++++++++++++++++
 drivers/spi/iproc_qspi.h |  18 +
 drivers/spi/iproc_spi.c  |  71 ++++
 include/spi.h            |   2 +
 6 files changed, 906 insertions(+)
 create mode 100644 drivers/spi/iproc_qspi.c
 create mode 100644 drivers/spi/iproc_qspi.h
 create mode 100644 drivers/spi/iproc_spi.c