blob: dc2a0cbd210df085bdc53f8ebdc54bfc20da677c [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Magnus Damm8051eff2009-11-26 11:10:05 +00002#ifndef __SPI_SH_MSIOF_H__
3#define __SPI_SH_MSIOF_H__
4
Hisashi Nakamuracf9e4782017-05-22 15:11:43 +02005enum {
6 MSIOF_SPI_MASTER,
7 MSIOF_SPI_SLAVE,
8};
9
Magnus Damm8051eff2009-11-26 11:10:05 +000010struct sh_msiof_spi_info {
11 int tx_fifo_override;
12 int rx_fifo_override;
13 u16 num_chipselect;
Hisashi Nakamuracf9e4782017-05-22 15:11:43 +020014 int mode;
Geert Uytterhoevenb0d0ce82014-06-30 12:10:24 +020015 unsigned int dma_tx_id;
16 unsigned int dma_rx_id;
Yoshihiro Shimoda31106282014-12-19 17:15:53 +090017 u32 dtdl;
18 u32 syncdl;
Magnus Damm8051eff2009-11-26 11:10:05 +000019};
20
21#endif /* __SPI_SH_MSIOF_H__ */