1/* 2 * Platform data definitions. 3 */ 4#ifndef __ASM_ARCH_BOARD_H 5#define __ASM_ARCH_BOARD_H 6 7#include <linux/types.h> 8 9/* Add basic devices: system manager, interrupt controller, portmuxes, etc. */ 10void at32_add_system_devices(void); 11 12#define ATMEL_MAX_UART 4 13extern struct platform_device *atmel_default_console_device; 14 15struct 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 */ 19}; 20void at32_map_usart(unsigned int hw_id, unsigned int line); 21struct platform_device *at32_add_device_usart(unsigned int id); 22 23struct eth_platform_data { 24 u8 is_rmii; 25}; 26struct platform_device * 27at32_add_device_eth(unsigned int id, struct eth_platform_data *data); 28 29struct spi_board_info; 30struct platform_device * 31at32_add_device_spi(unsigned int id, struct spi_board_info *b, unsigned int n); 32 33struct atmel_lcdfb_info; 34struct platform_device * 35at32_add_device_lcdc(unsigned int id, struct atmel_lcdfb_info *data, 36 unsigned long fbmem_start, unsigned long fbmem_len); 37 38#endif /* __ASM_ARCH_BOARD_H */ 39