xref: /linux/include/linux/platform_data/atmel.h (revision e2be04c7f9958dde770eeb8b30e829ca969b37bb)
1 /*
2  * atmel platform data
3  *
4  * GPL v2 Only
5  */
6 
7 #ifndef __ATMEL_H__
8 #define __ATMEL_H__
9 
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 
22 /* FIXME: this needs a better location, but gets stuff building again */
23 #ifdef CONFIG_ATMEL_PM
24 extern int at91_suspend_entering_slow_clock(void);
25 #else
26 static inline int at91_suspend_entering_slow_clock(void)
27 {
28 	return 0;
29 }
30 #endif
31 
32 #endif /* __ATMEL_H__ */
33