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 | |
Tony Lindgren | 120db2c | 2006-04-02 17:46:27 +0100 | [diff] [blame] | 8 | struct omap2_mcspi_platform_config { |
Tony Lindgren | 120db2c | 2006-04-02 17:46:27 +0100 | [diff] [blame] | 9 | unsigned short num_cs; |
| 10 | }; |
| 11 | |
Charulatha V | 617871d | 2011-02-17 09:53:09 -0800 | [diff] [blame^] | 12 | struct omap2_mcspi_dev_attr { |
| 13 | unsigned short num_chipselect; |
| 14 | }; |
| 15 | |
Tony Lindgren | 120db2c | 2006-04-02 17:46:27 +0100 | [diff] [blame] | 16 | struct omap2_mcspi_device_config { |
| 17 | unsigned turbo_mode:1; |
| 18 | |
| 19 | /* Do we want one channel enabled at the same time? */ |
| 20 | unsigned single_channel:1; |
| 21 | }; |
| 22 | |
| 23 | #endif |