spi: Extend the core to ease integration of SPI memory controllers
authorBoris Brezillon <boris.brezillon@bootlin.com>
Thu, 16 Aug 2018 15:30:11 +0000 (17:30 +0200)
committerJagan Teki <jagan@amarulasolutions.com>
Thu, 20 Sep 2018 14:40:49 +0000 (20:10 +0530)
commitd13f5b254a43e292814a618f60a2696ba01267a7
tree2d565b6e4249c7c4d7ce3de6a26ba0bc0b39c733
parentf86787280b37e381f8d82f48583434d62dd16e27
spi: Extend the core to ease integration of SPI memory controllers

Some controllers are exposing high-level interfaces to access various
kind of SPI memories. Unfortunately they do not fit in the current
spi_controller model and usually have drivers placed in
drivers/mtd/spi-nor which are only supporting SPI NORs and not SPI
memories in general.

This is an attempt at defining a SPI memory interface which works for
all kinds of SPI memories (NORs, NANDs, SRAMs).

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Jagan Teki <jagan@openedev.com>
drivers/spi/Kconfig
drivers/spi/Makefile
drivers/spi/spi-mem.c [new file with mode: 0644]
include/spi-mem.h [new file with mode: 0644]
include/spi.h