2019-06-03 13:45:01 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2011-12-29 14:43:24 +08:00
|
|
|
/*
|
|
|
|
* atmel platform data
|
|
|
|
*/
|
|
|
|
|
2012-04-02 04:38:40 +08:00
|
|
|
#ifndef __ATMEL_H__
|
|
|
|
#define __ATMEL_H__
|
2011-12-29 14:43:24 +08:00
|
|
|
|
2012-10-30 05:12:23 +08: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 18:18:02 +08:00
|
|
|
#ifdef CONFIG_ATMEL_PM
|
2012-10-30 05:12:23 +08:00
|
|
|
extern int at91_suspend_entering_slow_clock(void);
|
2017-06-09 18:18:02 +08:00
|
|
|
#else
|
|
|
|
static inline int at91_suspend_entering_slow_clock(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
2012-10-30 05:12:23 +08:00
|
|
|
|
2012-04-02 04:38:40 +08:00
|
|
|
#endif /* __ATMEL_H__ */
|