Merge tag 'usb-serial-4.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/johan...
[deliverable/linux.git] / include / linux / platform_data / atmel.h
1 /*
2 * atmel platform data
3 *
4 * GPL v2 Only
5 */
6
7 #ifndef __ATMEL_H__
8 #define __ATMEL_H__
9
10 #include <linux/mtd/nand.h>
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 /*
23 * at91: 6 USARTs and one DBGU port (SAM9260)
24 * avr32: 4
25 */
26 #define ATMEL_MAX_UART 7
27
28 /* Compact Flash */
29 struct at91_cf_data {
30 int irq_pin; /* I/O IRQ */
31 int det_pin; /* Card detect */
32 int vcc_pin; /* power switching */
33 int rst_pin; /* card reset */
34 u8 chipselect; /* EBI Chip Select number */
35 u8 flags;
36 #define AT91_CF_TRUE_IDE 0x01
37 #define AT91_IDE_SWAP_A0_A2 0x02
38 };
39
40 /* NAND / SmartMedia */
41 struct atmel_nand_data {
42 int enable_pin; /* chip enable */
43 int det_pin; /* card detect */
44 int rdy_pin; /* ready/busy */
45 u8 rdy_pin_active_low; /* rdy_pin value is inverted */
46 u8 ale; /* address line number connected to ALE */
47 u8 cle; /* address line number connected to CLE */
48 u8 bus_width_16; /* buswidth is 16 bit */
49 u8 ecc_mode; /* ecc mode */
50 u8 on_flash_bbt; /* bbt on flash */
51 struct mtd_partition *parts;
52 unsigned int num_parts;
53 bool has_dma; /* support dma transfer */
54
55 /* default is false, only for at32ap7000 chip is true */
56 bool need_reset_workaround;
57 };
58
59 /* Serial */
60 struct atmel_uart_data {
61 int num; /* port num */
62 short use_dma_tx; /* use transmit DMA? */
63 short use_dma_rx; /* use receive DMA? */
64 void __iomem *regs; /* virt. base address, if any */
65 struct serial_rs485 rs485; /* rs485 settings */
66 };
67
68 /* CAN */
69 struct at91_can_data {
70 void (*transceiver_switch)(int on);
71 };
72
73 /* FIXME: this needs a better location, but gets stuff building again */
74 extern int at91_suspend_entering_slow_clock(void);
75
76 #endif /* __ATMEL_H__ */
This page took 0.03592 seconds and 6 git commands to generate.