[ATM]: Fix clip module reload crash.
[pv_ops_mirror.git] / include / asm-avr32 / arch-at32ap / board.h
blob7dbd603c38cc3cf6e5a2244e547c90b45df46e7e
1 /*
2 * Platform data definitions.
3 */
4 #ifndef __ASM_ARCH_BOARD_H
5 #define __ASM_ARCH_BOARD_H
7 #include <linux/types.h>
9 #define GPIO_PIN_NONE (-1)
11 /* Add basic devices: system manager, interrupt controller, portmuxes, etc. */
12 void at32_add_system_devices(void);
14 #define ATMEL_MAX_UART 4
15 extern struct platform_device *atmel_default_console_device;
17 struct atmel_uart_data {
18 short use_dma_tx; /* use transmit DMA? */
19 short use_dma_rx; /* use receive DMA? */
20 void __iomem *regs; /* virtual base address, if any */
22 void at32_map_usart(unsigned int hw_id, unsigned int line);
23 struct platform_device *at32_add_device_usart(unsigned int id);
25 struct eth_platform_data {
26 u32 phy_mask;
27 u8 is_rmii;
29 struct platform_device *
30 at32_add_device_eth(unsigned int id, struct eth_platform_data *data);
32 struct spi_board_info;
33 struct platform_device *
34 at32_add_device_spi(unsigned int id, struct spi_board_info *b, unsigned int n);
36 struct atmel_lcdfb_info;
37 struct platform_device *
38 at32_add_device_lcdc(unsigned int id, struct atmel_lcdfb_info *data,
39 unsigned long fbmem_start, unsigned long fbmem_len);
41 struct usba_platform_data {
42 int vbus_pin;
44 struct platform_device *
45 at32_add_device_usba(unsigned int id, struct usba_platform_data *data);
47 /* depending on what's hooked up, not all SSC pins will be used */
48 #define ATMEL_SSC_TK 0x01
49 #define ATMEL_SSC_TF 0x02
50 #define ATMEL_SSC_TD 0x04
51 #define ATMEL_SSC_TX (ATMEL_SSC_TK | ATMEL_SSC_TF | ATMEL_SSC_TD)
53 #define ATMEL_SSC_RK 0x10
54 #define ATMEL_SSC_RF 0x20
55 #define ATMEL_SSC_RD 0x40
56 #define ATMEL_SSC_RX (ATMEL_SSC_RK | ATMEL_SSC_RF | ATMEL_SSC_RD)
58 struct platform_device *
59 at32_add_device_ssc(unsigned int id, unsigned int flags);
61 #endif /* __ASM_ARCH_BOARD_H */