![Hisashi Nakamura](/assets/img/avatar_default.png)
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>
21 lines
318 B
C
21 lines
318 B
C
#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;
|
|
u32 syncdl;
|
|
};
|
|
|
|
#endif /* __SPI_SH_MSIOF_H__ */
|