1 /* SPDX-License-Identifier: GPL-2.0 */
5 #define OMAP2_MCSPI_REV 0
6 #define OMAP3_MCSPI_REV 1
7 #define OMAP4_MCSPI_REV 2
9 #define OMAP4_MCSPI_REG_OFFSET 0x100
11 #define MCSPI_PINDIR_D0_IN_D1_OUT 0
12 #define MCSPI_PINDIR_D0_OUT_D1_IN 1
14 struct omap2_mcspi_platform_config
{
15 unsigned short num_cs
;
16 unsigned int regs_offset
;
17 unsigned int pin_dir
:1;
20 struct omap2_mcspi_dev_attr
{
21 unsigned short num_chipselect
;
24 struct omap2_mcspi_device_config
{
25 unsigned turbo_mode
:1;
27 /* toggle chip select after every word */
28 unsigned cs_per_word
:1;