]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - include/linux/platform_data/atmel.h
ARM: at91: remove atmel_nand_data
[mirror_ubuntu-artful-kernel.git] / include / linux / platform_data / atmel.h
CommitLineData
bf4289cb
JCPV
1/*
2 * atmel platform data
3 *
4 * GPL v2 Only
5 */
6
3d92e051
PG
7#ifndef __ATMEL_H__
8#define __ATMEL_H__
bf4289cb 9
bcd2360c 10#include <linux/serial.h>
bcd2360c 11
bcd2360c
JCPV
12 /* Compact Flash */
13struct 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
bcd2360c
JCPV
24 /* Serial */
25struct 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
bcd2360c 33/* FIXME: this needs a better location, but gets stuff building again */
be36e000 34#ifdef CONFIG_ATMEL_PM
bcd2360c 35extern int at91_suspend_entering_slow_clock(void);
be36e000
AB
36#else
37static inline int at91_suspend_entering_slow_clock(void)
38{
39 return 0;
40}
41#endif
bcd2360c 42
3d92e051 43#endif /* __ATMEL_H__ */