Tony Lindgren | 120db2c | 2006-04-02 17:46:27 +0100 | [diff] [blame] | 1 | #ifndef _OMAP2_MCSPI_H |
| 2 | #define _OMAP2_MCSPI_H |
| 3 | |
Charulatha V | 617871d | 2011-02-17 09:53:09 -0800 | [diff] [blame] | 4 | #define OMAP2_MCSPI_REV 0 |
| 5 | #define OMAP3_MCSPI_REV 1 |
| 6 | #define OMAP4_MCSPI_REV 2 |
| 7 | |
Charulatha V | 1a5d819 | 2011-02-02 17:52:14 +0530 | [diff] [blame] | 8 | #define OMAP4_MCSPI_REG_OFFSET 0x100 |
| 9 | |
Tony Lindgren | 120db2c | 2006-04-02 17:46:27 +0100 | [diff] [blame] | 10 | struct omap2_mcspi_platform_config { |
Tony Lindgren | 120db2c | 2006-04-02 17:46:27 +0100 | [diff] [blame] | 11 | unsigned short num_cs; |
Charulatha V | 1a5d819 | 2011-02-02 17:52:14 +0530 | [diff] [blame] | 12 | unsigned int regs_offset; |
Tony Lindgren | 120db2c | 2006-04-02 17:46:27 +0100 | [diff] [blame] | 13 | }; |
| 14 | |
Charulatha V | 617871d | 2011-02-17 09:53:09 -0800 | [diff] [blame] | 15 | struct omap2_mcspi_dev_attr { |
| 16 | unsigned short num_chipselect; |
| 17 | }; |
| 18 | |
Tony Lindgren | 120db2c | 2006-04-02 17:46:27 +0100 | [diff] [blame] | 19 | struct omap2_mcspi_device_config { |
| 20 | unsigned turbo_mode:1; |
Tony Lindgren | 120db2c | 2006-04-02 17:46:27 +0100 | [diff] [blame] | 21 | }; |
| 22 | |
| 23 | #endif |