License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-2.6-block.git] / include / linux / platform_data / spi-omap2-mcspi.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
120db2cb
TL
2#ifndef _OMAP2_MCSPI_H
3#define _OMAP2_MCSPI_H
4
617871de
C
5#define OMAP2_MCSPI_REV 0
6#define OMAP3_MCSPI_REV 1
7#define OMAP4_MCSPI_REV 2
8
1a5d8190
C
9#define OMAP4_MCSPI_REG_OFFSET 0x100
10
2cd45179
DM
11#define MCSPI_PINDIR_D0_IN_D1_OUT 0
12#define MCSPI_PINDIR_D0_OUT_D1_IN 1
0384e90b 13
120db2cb 14struct omap2_mcspi_platform_config {
120db2cb 15 unsigned short num_cs;
1a5d8190 16 unsigned int regs_offset;
0384e90b 17 unsigned int pin_dir:1;
120db2cb
TL
18};
19
617871de
C
20struct omap2_mcspi_dev_attr {
21 unsigned short num_chipselect;
22};
23
120db2cb
TL
24struct omap2_mcspi_device_config {
25 unsigned turbo_mode:1;
5cbc7ca9
MB
26
27 /* toggle chip select after every word */
28 unsigned cs_per_word:1;
120db2cb
TL
29};
30
31#endif