xtensa: fix high memory/reserved memory collision
[cris-mirror.git] / include / linux / platform_data / spi-omap2-mcspi.h
blob13c83a25958a6b9bd8db6524a508e412dfc21ff1
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _OMAP2_MCSPI_H
3 #define _OMAP2_MCSPI_H
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;
31 #endif