Linux-libre 5.3.12-gnu
[librecmc/linux-libre.git] / include / linux / platform_data / atmel.h
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * atmel platform data
4  */
5
6 #ifndef __ATMEL_H__
7 #define __ATMEL_H__
8
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
21 /* FIXME: this needs a better location, but gets stuff building again */
22 #ifdef CONFIG_ATMEL_PM
23 extern int at91_suspend_entering_slow_clock(void);
24 #else
25 static inline int at91_suspend_entering_slow_clock(void)
26 {
27         return 0;
28 }
29 #endif
30
31 #endif /* __ATMEL_H__ */