···3131#ifndef __ASM_ARCH_BOARD_H3232#define __ASM_ARCH_BOARD_H33333434-#include <linux/mtd/partitions.h>3535-#include <linux/device.h>3636-#include <linux/i2c.h>3737-#include <linux/leds.h>3838-#include <linux/spi/spi.h>3939-#include <linux/usb/atmel_usba_udc.h>4040-#include <linux/atmel-mci.h>4141-#include <sound/atmel-ac97c.h>4242-#include <linux/serial.h>4343-#include <linux/platform_data/macb.h>4434#include <linux/platform_data/atmel.h>45354636 /* USB Device */4747-struct at91_udc_data {4848- int vbus_pin; /* high == host powering us */4949- u8 vbus_active_low; /* vbus polarity */5050- u8 vbus_polled; /* Use polling, not interrupt */5151- int pullup_pin; /* active == D+ pulled up */5252- u8 pullup_active_low; /* true == pullup_pin is active low */5353-};5437extern void __init at91_add_device_udc(struct at91_udc_data *data);55385639 /* USB High Speed Device */5740extern void __init at91_add_device_usba(struct usba_platform_data *data);58415942 /* Compact Flash */6060-struct at91_cf_data {6161- int irq_pin; /* I/O IRQ */6262- int det_pin; /* Card detect */6363- int vcc_pin; /* power switching */6464- int rst_pin; /* card reset */6565- u8 chipselect; /* EBI Chip Select number */6666- u8 flags;6767-#define AT91_CF_TRUE_IDE 0x016868-#define AT91_IDE_SWAP_A0_A2 0x026969-};7043extern void __init at91_add_device_cf(struct at91_cf_data *data);71447245 /* MMC / SD */···5986extern void __init at91_add_device_eth(struct macb_platform_data *data);60876188 /* USB Host */6262-#define AT91_MAX_USBH_PORTS 36363-struct at91_usbh_data {6464- int vbus_pin[AT91_MAX_USBH_PORTS]; /* port power-control pin */6565- int overcurrent_pin[AT91_MAX_USBH_PORTS];6666- u8 ports; /* number of ports on root hub */6767- u8 overcurrent_supported;6868- u8 vbus_pin_active_low[AT91_MAX_USBH_PORTS];6969- u8 overcurrent_status[AT91_MAX_USBH_PORTS];7070- u8 overcurrent_changed[AT91_MAX_USBH_PORTS];7171-};7289extern void __init at91_add_device_usbh(struct at91_usbh_data *data);7390extern void __init at91_add_device_usbh_ohci(struct at91_usbh_data *data);7491extern void __init at91_add_device_usbh_ehci(struct at91_usbh_data *data);···8712488125extern struct platform_device *atmel_default_console_device;891269090-struct atmel_uart_data {9191- int num; /* port num */9292- short use_dma_tx; /* use transmit DMA? */9393- short use_dma_rx; /* use receive DMA? */9494- void __iomem *regs; /* virt. base address, if any */9595- struct serial_rs485 rs485; /* rs485 settings */9696-};97127extern void __init at91_add_device_serial(void);9812899129/*···129173 bool use_pck_as_mck);130174131175 /* Touchscreen Controller */132132-struct at91_tsadcc_data {133133- unsigned int adc_clock;134134- u8 pendet_debounce;135135- u8 ts_sample_hold_time;136136-};137176extern void __init at91_add_device_tsadcc(struct at91_tsadcc_data *data);138177139178/* CAN */140140-struct at91_can_data {141141- void (*transceiver_switch)(int on);142142-};143179extern void __init at91_add_device_can(struct at91_can_data *data);144180145181 /* LEDs */146182extern void __init at91_gpio_leds(struct gpio_led *leds, int nr);147183extern void __init at91_pwm_leds(struct gpio_led *leds, int nr);148148-149149-/* FIXME: this needs a better location, but gets stuff building again */150150-extern int at91_suspend_entering_slow_clock(void);151184152185#endif
-7
arch/avr32/mach-at32ap/include/mach/board.h
···3434#define ATMEL_USART_CTS 0x023535#define ATMEL_USART_CLK 0x0436363737-struct atmel_uart_data {3838- int num; /* port num */3939- short use_dma_tx; /* use transmit DMA? */4040- short use_dma_rx; /* use receive DMA? */4141- void __iomem *regs; /* virtual base address, if any */4242- struct serial_rs485 rs485; /* rs485 settings */4343-};4437void at32_map_usart(unsigned int hw_id, unsigned int line, int flags);4538struct platform_device *at32_add_device_usart(unsigned int id);4639