2011-12-29 13:43:24 +07:00
|
|
|
/*
|
|
|
|
* atmel platform data
|
|
|
|
*
|
|
|
|
* GPL v2 Only
|
|
|
|
*/
|
|
|
|
|
2012-04-02 03:38:40 +07:00
|
|
|
#ifndef __ATMEL_H__
|
|
|
|
#define __ATMEL_H__
|
2011-12-29 13:43:24 +07:00
|
|
|
|
2012-10-30 04:12:23 +07:00
|
|
|
/* Compact Flash */
|
|
|
|
struct at91_cf_data {
|
|
|
|
int irq_pin; /* I/O IRQ */
|
|
|
|
int det_pin; /* Card detect */
|
|
|
|
int vcc_pin; /* power switching */
|
|
|
|
int rst_pin; /* card reset */
|
|
|
|
u8 chipselect; /* EBI Chip Select number */
|
|
|
|
u8 flags;
|
|
|
|
#define AT91_CF_TRUE_IDE 0x01
|
|
|
|
#define AT91_IDE_SWAP_A0_A2 0x02
|
|
|
|
};
|
|
|
|
|
|
|
|
/* FIXME: this needs a better location, but gets stuff building again */
|
2017-06-09 17:18:02 +07:00
|
|
|
#ifdef CONFIG_ATMEL_PM
|
2012-10-30 04:12:23 +07:00
|
|
|
extern int at91_suspend_entering_slow_clock(void);
|
2017-06-09 17:18:02 +07:00
|
|
|
#else
|
|
|
|
static inline int at91_suspend_entering_slow_clock(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
2012-10-30 04:12:23 +07:00
|
|
|
|
2012-04-02 03:38:40 +07:00
|
|
|
#endif /* __ATMEL_H__ */
|