1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _OMAP2_MCSPI_H
3 #define _OMAP2_MCSPI_H
4 
5 #define OMAP4_MCSPI_REG_OFFSET 0x100
6 
7 #define MCSPI_PINDIR_D0_IN_D1_OUT	0
8 #define MCSPI_PINDIR_D0_OUT_D1_IN	1
9 
10 struct omap2_mcspi_platform_config {
11 	unsigned short	num_cs;
12 	unsigned int regs_offset;
13 	unsigned int pin_dir:1;
14 };
15 
16 struct omap2_mcspi_device_config {
17 	unsigned turbo_mode:1;
18 
19 	/* toggle chip select after every word */
20 	unsigned cs_per_word:1;
21 };
22 
23 #endif
24