Blackfin arch: fix bug which unaligns the init thread's stack and causes the current...
[linux-2.6/linux-loongson.git] / include / asm-avr32 / arch-at32ap / board.h
blob0215965dc586d4db7037299ef56e735e9cb5a0b4
1 /*
2 * Platform data definitions.
3 */
4 #ifndef __ASM_ARCH_BOARD_H
5 #define __ASM_ARCH_BOARD_H
7 #include <linux/types.h>
9 /* Add basic devices: system manager, interrupt controller, portmuxes, etc. */
10 void at32_add_system_devices(void);
12 #define ATMEL_MAX_UART 4
13 extern struct platform_device *atmel_default_console_device;
15 struct atmel_uart_data {
16 short use_dma_tx; /* use transmit DMA? */
17 short use_dma_rx; /* use receive DMA? */
18 void __iomem *regs; /* virtual base address, if any */
20 void at32_map_usart(unsigned int hw_id, unsigned int line);
21 struct platform_device *at32_add_device_usart(unsigned int id);
23 struct eth_platform_data {
24 u32 phy_mask;
25 u8 is_rmii;
27 struct platform_device *
28 at32_add_device_eth(unsigned int id, struct eth_platform_data *data);
30 struct spi_board_info;
31 struct platform_device *
32 at32_add_device_spi(unsigned int id, struct spi_board_info *b, unsigned int n);
34 struct atmel_lcdfb_info;
35 struct platform_device *
36 at32_add_device_lcdc(unsigned int id, struct atmel_lcdfb_info *data,
37 unsigned long fbmem_start, unsigned long fbmem_len);
39 /* depending on what's hooked up, not all SSC pins will be used */
40 #define ATMEL_SSC_TK 0x01
41 #define ATMEL_SSC_TF 0x02
42 #define ATMEL_SSC_TD 0x04
43 #define ATMEL_SSC_TX (ATMEL_SSC_TK | ATMEL_SSC_TF | ATMEL_SSC_TD)
45 #define ATMEL_SSC_RK 0x10
46 #define ATMEL_SSC_RF 0x20
47 #define ATMEL_SSC_RD 0x40
48 #define ATMEL_SSC_RX (ATMEL_SSC_RK | ATMEL_SSC_RF | ATMEL_SSC_RD)
50 struct platform_device *
51 at32_add_device_ssc(unsigned int id, unsigned int flags);
53 #endif /* __ASM_ARCH_BOARD_H */