]> git.baikalelectronics.ru Git - kernel.git/commit
spi: introduce accelerated read support for spi flash devices
authorVignesh R <vigneshr@ti.com>
Fri, 11 Dec 2015 04:09:56 +0000 (09:39 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 9 Feb 2016 19:34:02 +0000 (19:34 +0000)
commite0aefed7a6ffddefd79ef60970227320482e4438
treed0f00feb603a841a6bd44929941cb1d7da1eabef
parent5367e65a538f2d59834d845f582bc1f1ae9599b8
spi: introduce accelerated read support for spi flash devices

In addition to providing direct access to SPI bus, some spi controller
hardwares (like ti-qspi) provide special port (like memory mapped port)
that are optimized to improve SPI flash read performance.
This means the controller can automatically send the SPI signals
required to read data from the SPI flash device.
For this, SPI controller needs to know flash specific information like
read command to use, dummy bytes and address width.

Introduce spi_flash_read() interface to support accelerated read
over SPI flash devices. SPI master drivers can implement this callback to
support interfaces such as memory mapped read etc. m25p80 flash driver
and other flash drivers can call this make use of such interfaces. The
interface should only be used with SPI flashes and cannot be used with
other SPI devices.

Signed-off-by: Vignesh R <vigneshr@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c
include/linux/spi/spi.h