diff options
author | Hisashi Nakamura <hisashi.nakamura.ak@renesas.com> | 2017-05-22 15:11:43 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-05-26 13:11:54 +0100 |
commit | cf9e4784f3bde3e4749163384f27450ddffe746c (patch) | |
tree | a4047eb127979d77db50eea2930faf6cff4f78e0 /include/linux/spi | |
parent | aa2ea9115bc3f0735aa65b833076cc5fe3da1489 (diff) | |
download | linux-stable-cf9e4784f3bde3e4749163384f27450ddffe746c.tar.gz linux-stable-cf9e4784f3bde3e4749163384f27450ddffe746c.tar.bz2 linux-stable-cf9e4784f3bde3e4749163384f27450ddffe746c.zip |
spi: sh-msiof: Add slave mode support
Add slave mode support to the MSIOF driver, in both PIO and DMA mode.
For now this only supports the transmission of messages with a size
that is known in advance.
Signed-off-by: Hisashi Nakamura <hisashi.nakamura.ak@renesas.com>
Signed-off-by: Hiromitsu Yamasaki <hiromitsu.yamasaki.ym@renesas.com>
[geert: Timeout handling cleanup, spi core integration, cancellation,
rewording]
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/spi')
-rw-r--r-- | include/linux/spi/sh_msiof.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/spi/sh_msiof.h b/include/linux/spi/sh_msiof.h index b087a85f5f72..f74b581f242f 100644 --- a/include/linux/spi/sh_msiof.h +++ b/include/linux/spi/sh_msiof.h @@ -1,10 +1,16 @@ #ifndef __SPI_SH_MSIOF_H__ #define __SPI_SH_MSIOF_H__ +enum { + MSIOF_SPI_MASTER, + MSIOF_SPI_SLAVE, +}; + struct sh_msiof_spi_info { int tx_fifo_override; int rx_fifo_override; u16 num_chipselect; + int mode; unsigned int dma_tx_id; unsigned int dma_rx_id; u32 dtdl; |