Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Magnus Damm | 8051eff | 2009-11-26 11:10:05 +0000 | [diff] [blame] | 2 | #ifndef __SPI_SH_MSIOF_H__ |
| 3 | #define __SPI_SH_MSIOF_H__ |
| 4 | |
Hisashi Nakamura | cf9e478 | 2017-05-22 15:11:43 +0200 | [diff] [blame] | 5 | enum { |
| 6 | MSIOF_SPI_MASTER, |
| 7 | MSIOF_SPI_SLAVE, |
| 8 | }; |
| 9 | |
Magnus Damm | 8051eff | 2009-11-26 11:10:05 +0000 | [diff] [blame] | 10 | struct sh_msiof_spi_info { |
| 11 | int tx_fifo_override; |
| 12 | int rx_fifo_override; |
| 13 | u16 num_chipselect; |
Hisashi Nakamura | cf9e478 | 2017-05-22 15:11:43 +0200 | [diff] [blame] | 14 | int mode; |
Geert Uytterhoeven | b0d0ce8 | 2014-06-30 12:10:24 +0200 | [diff] [blame] | 15 | unsigned int dma_tx_id; |
| 16 | unsigned int dma_rx_id; |
Yoshihiro Shimoda | 3110628 | 2014-12-19 17:15:53 +0900 | [diff] [blame] | 17 | u32 dtdl; |
| 18 | u32 syncdl; |
Magnus Damm | 8051eff | 2009-11-26 11:10:05 +0000 | [diff] [blame] | 19 | }; |
| 20 | |
| 21 | #endif /* __SPI_SH_MSIOF_H__ */ |