aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2012-11-12 16:54:08 -0500
committerArnd Bergmann <arnd@arndb.de>2012-11-12 16:54:08 -0500
commit8a6ff8a0a2bc51b29681aab093b349c9eb32acf5 (patch)
tree7ee7315a4aa9b33cba73cf46e59187157a00866a /include/linux/platform_data
parent65829ef5a0b9bdffa34b35479853d24e547cfde8 (diff)
parent75984df05d86956541795f01e62d7dc67bc522fd (diff)
Merge tag 'for-3.8-at91_header_clean' of git://github.com/at91linux/linux-at91 into next/headers
From Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>: arm: at91: mach header cleanup This first patch serie start the cleanup of the header in mach by moving all the platform data to include/linux/platform_data and move the board header and drivers header next to them * tag 'for-3.8-at91_header_clean' of git://github.com/at91linux/linux-at91: arm: at91: move at91rm9200 rtc header in drivers/rtc arm: at91: move reset controller header to arm/arm/mach-at91 arm: at91: move pit define to the driver arm: at91: move at91_shdwc.h to arch/arm/mach-at91 arm: at91: move board header to arch/arm/mach-at91 arn: at91: move at91_tc.h to arch/arm/mach-at91 arm: at91 move at91_aic.h to arch/arm/mach-at91 arm: at91 move board.h to arch/arm/mach-at91 arm: at91: move platfarm_data to include/linux/platform_data/atmel.h arm: at91: drop machine defconfig Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Cc: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/atmel.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/include/linux/platform_data/atmel.h b/include/linux/platform_data/atmel.h
index b0f2c56a8ea..dbd6d53cc27 100644
--- a/include/linux/platform_data/atmel.h
+++ b/include/linux/platform_data/atmel.h
@@ -8,6 +8,49 @@
8#define __ATMEL_H__ 8#define __ATMEL_H__
9 9
10#include <linux/mtd/nand.h> 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 /* 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
43 /* USB Host */
44#define AT91_MAX_USBH_PORTS 3
45struct at91_usbh_data {
46 int vbus_pin[AT91_MAX_USBH_PORTS]; /* port power-control pin */
47 int overcurrent_pin[AT91_MAX_USBH_PORTS];
48 u8 ports; /* number of ports on root hub */
49 u8 overcurrent_supported;
50 u8 vbus_pin_active_low[AT91_MAX_USBH_PORTS];
51 u8 overcurrent_status[AT91_MAX_USBH_PORTS];
52 u8 overcurrent_changed[AT91_MAX_USBH_PORTS];
53};
11 54
12 /* NAND / SmartMedia */ 55 /* NAND / SmartMedia */
13struct atmel_nand_data { 56struct atmel_nand_data {
@@ -24,4 +67,28 @@ struct atmel_nand_data {
24 unsigned int num_parts; 67 unsigned int num_parts;
25}; 68};
26 69
70 /* Serial */
71struct atmel_uart_data {
72 int num; /* port num */
73 short use_dma_tx; /* use transmit DMA? */
74 short use_dma_rx; /* use receive DMA? */
75 void __iomem *regs; /* virt. base address, if any */
76 struct serial_rs485 rs485; /* rs485 settings */
77};
78
79 /* Touchscreen Controller */
80struct at91_tsadcc_data {
81 unsigned int adc_clock;
82 u8 pendet_debounce;
83 u8 ts_sample_hold_time;
84};
85
86/* CAN */
87struct at91_can_data {
88 void (*transceiver_switch)(int on);
89};
90
91/* FIXME: this needs a better location, but gets stuff building again */
92extern int at91_suspend_entering_slow_clock(void);
93
27#endif /* __ATMEL_H__ */ 94#endif /* __ATMEL_H__ */