1 /* 2 * atmel platform data 3 * 4 * GPL v2 Only 5 */ 6 7 #ifndef __ATMEL_H__ 8 #define __ATMEL_H__ 9 10 #include <linux/serial.h> 11 12 /* Compact Flash */ 13 struct at91_cf_data { 14 int irq_pin; /* I/O IRQ */ 15 int det_pin; /* Card detect */ 16 int vcc_pin; /* power switching */ 17 int rst_pin; /* card reset */ 18 u8 chipselect; /* EBI Chip Select number */ 19 u8 flags; 20 #define AT91_CF_TRUE_IDE 0x01 21 #define AT91_IDE_SWAP_A0_A2 0x02 22 }; 23 24 /* Serial */ 25 struct atmel_uart_data { 26 int num; /* port num */ 27 short use_dma_tx; /* use transmit DMA? */ 28 short use_dma_rx; /* use receive DMA? */ 29 void __iomem *regs; /* virt. base address, if any */ 30 struct serial_rs485 rs485; /* rs485 settings */ 31 }; 32 33 /* FIXME: this needs a better location, but gets stuff building again */ 34 #ifdef CONFIG_ATMEL_PM 35 extern int at91_suspend_entering_slow_clock(void); 36 #else 37 static inline int at91_suspend_entering_slow_clock(void) 38 { 39 return 0; 40 } 41 #endif 42 43 #endif /* __ATMEL_H__ */ 44