diff options
Diffstat (limited to 'include/linux/platform_data/spi-omap2-mcspi.h')
| -rw-r--r-- | include/linux/platform_data/spi-omap2-mcspi.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/linux/platform_data/spi-omap2-mcspi.h b/include/linux/platform_data/spi-omap2-mcspi.h new file mode 100644 index 000000000000..a357eb26bd25 --- /dev/null +++ b/include/linux/platform_data/spi-omap2-mcspi.h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | #ifndef _OMAP2_MCSPI_H | ||
| 2 | #define _OMAP2_MCSPI_H | ||
| 3 | |||
| 4 | #define OMAP2_MCSPI_REV 0 | ||
| 5 | #define OMAP3_MCSPI_REV 1 | ||
| 6 | #define OMAP4_MCSPI_REV 2 | ||
| 7 | |||
| 8 | #define OMAP4_MCSPI_REG_OFFSET 0x100 | ||
| 9 | |||
| 10 | struct omap2_mcspi_platform_config { | ||
| 11 | unsigned short num_cs; | ||
| 12 | unsigned int regs_offset; | ||
| 13 | }; | ||
| 14 | |||
| 15 | struct omap2_mcspi_dev_attr { | ||
| 16 | unsigned short num_chipselect; | ||
| 17 | }; | ||
| 18 | |||
| 19 | struct omap2_mcspi_device_config { | ||
| 20 | unsigned turbo_mode:1; | ||
| 21 | }; | ||
| 22 | |||
| 23 | #endif | ||
