atmel-mci: Driver for Atmel on-chip MMC controllers
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / asm-avr32 / arch-at32ap / board.h
bloba3783861cdd269ab80101e1a2acdf162f8fdecef
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)
12 * Clock rates for various on-board oscillators. The number of entries
13 * in this array is chip-dependent.
15 extern unsigned long at32_board_osc_rates[];
17 /* Add basic devices: system manager, interrupt controller, portmuxes, etc. */
18 void at32_add_system_devices(void);
20 #define ATMEL_MAX_UART 4
21 extern struct platform_device *atmel_default_console_device;
23 struct atmel_uart_data {
24 short use_dma_tx; /* use transmit DMA? */
25 short use_dma_rx; /* use receive DMA? */
26 void __iomem *regs; /* virtual base address, if any */
28 void at32_map_usart(unsigned int hw_id, unsigned int line);
29 struct platform_device *at32_add_device_usart(unsigned int id);
31 struct eth_platform_data {
32 u32 phy_mask;
33 u8 is_rmii;
35 struct platform_device *
36 at32_add_device_eth(unsigned int id, struct eth_platform_data *data);
38 struct spi_board_info;
39 struct platform_device *
40 at32_add_device_spi(unsigned int id, struct spi_board_info *b, unsigned int n);
42 struct atmel_lcdfb_info;
43 struct platform_device *
44 at32_add_device_lcdc(unsigned int id, struct atmel_lcdfb_info *data,
45 unsigned long fbmem_start, unsigned long fbmem_len,
46 unsigned int pin_config);
48 struct usba_platform_data;
49 struct platform_device *
50 at32_add_device_usba(unsigned int id, struct usba_platform_data *data);
52 struct ide_platform_data {
53 u8 cs;
55 struct platform_device *
56 at32_add_device_ide(unsigned int id, unsigned int extint,
57 struct ide_platform_data *data);
59 /* mask says which PWM channels to mux */
60 struct platform_device *at32_add_device_pwm(u32 mask);
62 /* depending on what's hooked up, not all SSC pins will be used */
63 #define ATMEL_SSC_TK 0x01
64 #define ATMEL_SSC_TF 0x02
65 #define ATMEL_SSC_TD 0x04
66 #define ATMEL_SSC_TX (ATMEL_SSC_TK | ATMEL_SSC_TF | ATMEL_SSC_TD)
68 #define ATMEL_SSC_RK 0x10
69 #define ATMEL_SSC_RF 0x20
70 #define ATMEL_SSC_RD 0x40
71 #define ATMEL_SSC_RX (ATMEL_SSC_RK | ATMEL_SSC_RF | ATMEL_SSC_RD)
73 struct platform_device *
74 at32_add_device_ssc(unsigned int id, unsigned int flags);
76 struct i2c_board_info;
77 struct platform_device *at32_add_device_twi(unsigned int id,
78 struct i2c_board_info *b,
79 unsigned int n);
81 struct mci_platform_data;
82 struct platform_device *
83 at32_add_device_mci(unsigned int id, struct mci_platform_data *data);
85 struct platform_device *at32_add_device_ac97c(unsigned int id);
86 struct platform_device *at32_add_device_abdac(unsigned int id);
87 struct platform_device *at32_add_device_psif(unsigned int id);
89 struct cf_platform_data {
90 int detect_pin;
91 int reset_pin;
92 int vcc_pin;
93 int ready_pin;
94 u8 cs;
96 struct platform_device *
97 at32_add_device_cf(unsigned int id, unsigned int extint,
98 struct cf_platform_data *data);
100 #endif /* __ASM_ARCH_BOARD_H */