tty/serial: at91: move ATMEL_MAX_UART
[deliverable/linux.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
JCPV
9
10#include <linux/mtd/nand.h>
bcd2360c
JCPV
11#include <linux/mtd/partitions.h>
12#include <linux/device.h>
13#include <linux/i2c.h>
14#include <linux/leds.h>
15#include <linux/spi/spi.h>
16#include <linux/usb/atmel_usba_udc.h>
17#include <linux/atmel-mci.h>
18#include <sound/atmel-ac97c.h>
19#include <linux/serial.h>
20#include <linux/platform_data/macb.h>
21
22 /* USB Device */
23struct at91_udc_data {
24 int vbus_pin; /* high == host powering us */
25 u8 vbus_active_low; /* vbus polarity */
26 u8 vbus_polled; /* Use polling, not interrupt */
27 int pullup_pin; /* active == D+ pulled up */
28 u8 pullup_active_low; /* true == pullup_pin is active low */
29};
30
31 /* Compact Flash */
32struct at91_cf_data {
33 int irq_pin; /* I/O IRQ */
34 int det_pin; /* Card detect */
35 int vcc_pin; /* power switching */
36 int rst_pin; /* card reset */
37 u8 chipselect; /* EBI Chip Select number */
38 u8 flags;
39#define AT91_CF_TRUE_IDE 0x01
40#define AT91_IDE_SWAP_A0_A2 0x02
41};
42
bf4289cb
JCPV
43 /* NAND / SmartMedia */
44struct atmel_nand_data {
45 int enable_pin; /* chip enable */
46 int det_pin; /* card detect */
47 int rdy_pin; /* ready/busy */
48 u8 rdy_pin_active_low; /* rdy_pin value is inverted */
49 u8 ale; /* address line number connected to ALE */
50 u8 cle; /* address line number connected to CLE */
51 u8 bus_width_16; /* buswidth is 16 bit */
52 u8 ecc_mode; /* ecc mode */
3dcb7ea1 53 u8 on_flash_bbt; /* bbt on flash */
bf4289cb
JCPV
54 struct mtd_partition *parts;
55 unsigned int num_parts;
1b719265 56 bool has_dma; /* support dma transfer */
71b94e2e
JW
57
58 /* default is false, only for at32ap7000 chip is true */
59 bool need_reset_workaround;
bf4289cb
JCPV
60};
61
bcd2360c
JCPV
62 /* Serial */
63struct atmel_uart_data {
64 int num; /* port num */
65 short use_dma_tx; /* use transmit DMA? */
66 short use_dma_rx; /* use receive DMA? */
67 void __iomem *regs; /* virt. base address, if any */
68 struct serial_rs485 rs485; /* rs485 settings */
69};
70
bcd2360c
JCPV
71/* CAN */
72struct at91_can_data {
73 void (*transceiver_switch)(int on);
74};
75
76/* FIXME: this needs a better location, but gets stuff building again */
77extern int at91_suspend_entering_slow_clock(void);
78
3d92e051 79#endif /* __ATMEL_H__ */
This page took 0.286444 seconds and 5 git commands to generate.