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