diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2016-11-10 00:58:01 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-11-11 19:00:00 +0300 |
commit | aca75157d9beb7b171a178446ecdb4d047b9f934 (patch) | |
tree | 240a396efb0bdf4606d7c0f8d7c84b71cc6e877b /drivers/spi/spi-fsl-lib.h | |
parent | 8f3086d2a9c1104f42d2d0247ef52b01c6d898d8 (diff) | |
download | linux-aca75157d9beb7b171a178446ecdb4d047b9f934.tar.xz |
spi: fsl-espi: add support for ESPI RXSKIP mode
This patch adds support for ESPI RXSKIP mode. This mode is optimized
for flash reads:
- sends a number of bytes and then reads a number of bytes
- shifts out zeros automatically when reading
Supporting RXSKIP mode is a prerequisite for supporting dual output
read mode.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-fsl-lib.h')
-rw-r--r-- | drivers/spi/spi-fsl-lib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi-fsl-lib.h b/drivers/spi/spi-fsl-lib.h index 35a7a1730d0c..3951322265d4 100644 --- a/drivers/spi/spi-fsl-lib.h +++ b/drivers/spi/spi-fsl-lib.h @@ -31,6 +31,7 @@ struct mpc8xxx_spi { #if IS_ENABLED(CONFIG_SPI_FSL_ESPI) unsigned int rx_len; unsigned int tx_len; + unsigned int rxskip; u8 *local_buf; spinlock_t lock; #endif |