OSDN Git Service

spi: Extend the core to ease integration of SPI memory controllers
authorBoris Brezillon <boris.brezillon@bootlin.com>
Thu, 26 Apr 2018 16:18:14 +0000 (18:18 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 11 May 2018 02:32:43 +0000 (11:32 +0900)
commitc36ff266dc82f4ae797a6f3513c6ffa344f7f1c7
treeed98cb9350de4166e7ae2fd0e6850b8e9b8e62fe
parent055ed0dabc3043d660f20bfc3b68b644ac58baac
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>
Reviewed-by: Frieder Schrempf <frieder.schrempf@exceet.de>
Tested-by: Frieder Schrempf <frieder.schrempf@exceet.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/Kconfig
drivers/spi/Makefile
drivers/spi/spi-mem.c [new file with mode: 0644]
include/linux/spi/spi-mem.h [new file with mode: 0644]
include/linux/spi/spi.h