Jean-Christophe PLAGNIOL-VILLARD | bf4289c | 2011-12-29 14:43:24 +0800 | [diff] [blame] | 1 | /* |
| 2 | * atmel platform data |
| 3 | * |
| 4 | * GPL v2 Only |
| 5 | */ |
| 6 | |
Paul Gortmaker | 3d92e05 | 2012-04-01 16:38:40 -0400 | [diff] [blame] | 7 | #ifndef __ATMEL_H__ |
| 8 | #define __ATMEL_H__ |
Jean-Christophe PLAGNIOL-VILLARD | bf4289c | 2011-12-29 14:43:24 +0800 | [diff] [blame] | 9 | |
Jean-Christophe PLAGNIOL-VILLARD | bcd2360 | 2012-10-30 05:12:23 +0800 | [diff] [blame] | 10 | /* Compact Flash */ |
| 11 | struct at91_cf_data { |
| 12 | int irq_pin; /* I/O IRQ */ |
| 13 | int det_pin; /* Card detect */ |
| 14 | int vcc_pin; /* power switching */ |
| 15 | int rst_pin; /* card reset */ |
| 16 | u8 chipselect; /* EBI Chip Select number */ |
| 17 | u8 flags; |
| 18 | #define AT91_CF_TRUE_IDE 0x01 |
| 19 | #define AT91_IDE_SWAP_A0_A2 0x02 |
| 20 | }; |
| 21 | |
Jean-Christophe PLAGNIOL-VILLARD | bcd2360 | 2012-10-30 05:12:23 +0800 | [diff] [blame] | 22 | /* FIXME: this needs a better location, but gets stuff building again */ |
Arnd Bergmann | be36e00 | 2017-06-09 12:18:02 +0200 | [diff] [blame] | 23 | #ifdef CONFIG_ATMEL_PM |
Jean-Christophe PLAGNIOL-VILLARD | bcd2360 | 2012-10-30 05:12:23 +0800 | [diff] [blame] | 24 | extern int at91_suspend_entering_slow_clock(void); |
Arnd Bergmann | be36e00 | 2017-06-09 12:18:02 +0200 | [diff] [blame] | 25 | #else |
| 26 | static inline int at91_suspend_entering_slow_clock(void) |
| 27 | { |
| 28 | return 0; |
| 29 | } |
| 30 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | bcd2360 | 2012-10-30 05:12:23 +0800 | [diff] [blame] | 31 | |
Paul Gortmaker | 3d92e05 | 2012-04-01 16:38:40 -0400 | [diff] [blame] | 32 | #endif /* __ATMEL_H__ */ |