2 * Platform data definitions.
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 {
26 struct platform_device *
27 at32_add_device_eth(unsigned int id, struct eth_platform_data *data);
29 struct spi_board_info;
30 struct platform_device *
31 at32_add_device_spi(unsigned int id, struct spi_board_info *b, unsigned int n);
33 struct atmel_lcdfb_info;
34 struct platform_device *
35 at32_add_device_lcdc(unsigned int id, struct atmel_lcdfb_info *data,
36 unsigned long fbmem_start, unsigned long fbmem_len);
38 #endif /* __ASM_ARCH_BOARD_H */