diff options
author | Vignesh R <vigneshr@ti.com> | 2015-12-11 05:09:56 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-02-09 20:34:02 +0100 |
commit | 556351f14e74db4cd3ddde386457edce7bf0b27f (patch) | |
tree | d0f00feb603a841a6bd44929941cb1d7da1eabef /drivers/spi/spi-ti-qspi.c | |
parent | Linux 4.5-rc1 (diff) | |
download | linux-556351f14e74db4cd3ddde386457edce7bf0b27f.tar.xz linux-556351f14e74db4cd3ddde386457edce7bf0b27f.zip |
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>
Diffstat (limited to 'drivers/spi/spi-ti-qspi.c')
0 files changed, 0 insertions, 0 deletions