[PATCH] atmel_serial: Pass fixed register mappings through platform_data
[pv_ops_mirror.git] / include / asm-avr32 / arch-at32ap / board.h
blob435507281f8958d86527e8a4c269bd65fdb47751
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 struct platform_device *at32_add_device_usart(unsigned int id);
22 struct eth_platform_data {
23 u8 valid;
24 u8 mii_phy_addr;
25 u8 is_rmii;
26 u8 hw_addr[6];
28 struct platform_device *
29 at32_add_device_eth(unsigned int id, struct eth_platform_data *data);
31 struct platform_device *at32_add_device_spi(unsigned int id);
33 struct lcdc_platform_data {
34 unsigned long fbmem_start;
35 unsigned long fbmem_size;
37 struct platform_device *
38 at32_add_device_lcdc(unsigned int id, struct lcdc_platform_data *data);
40 #endif /* __ASM_ARCH_BOARD_H */