diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-avr32/arch-at32ap/board.h | 4 | ||||
-rw-r--r-- | include/linux/usb/atmel_usba_udc.h | 22 |
2 files changed, 23 insertions, 3 deletions
diff --git a/include/asm-avr32/arch-at32ap/board.h b/include/asm-avr32/arch-at32ap/board.h index 7597b0bd2f01..3fea2004f7db 100644 --- a/include/asm-avr32/arch-at32ap/board.h +++ b/include/asm-avr32/arch-at32ap/board.h | |||
@@ -38,9 +38,7 @@ struct platform_device * | |||
38 | at32_add_device_lcdc(unsigned int id, struct atmel_lcdfb_info *data, | 38 | at32_add_device_lcdc(unsigned int id, struct atmel_lcdfb_info *data, |
39 | unsigned long fbmem_start, unsigned long fbmem_len); | 39 | unsigned long fbmem_start, unsigned long fbmem_len); |
40 | 40 | ||
41 | struct usba_platform_data { | 41 | struct usba_platform_data; |
42 | int vbus_pin; | ||
43 | }; | ||
44 | struct platform_device * | 42 | struct platform_device * |
45 | at32_add_device_usba(unsigned int id, struct usba_platform_data *data); | 43 | at32_add_device_usba(unsigned int id, struct usba_platform_data *data); |
46 | 44 | ||
diff --git a/include/linux/usb/atmel_usba_udc.h b/include/linux/usb/atmel_usba_udc.h new file mode 100644 index 000000000000..6311fa2d9f82 --- /dev/null +++ b/include/linux/usb/atmel_usba_udc.h | |||
@@ -0,0 +1,22 @@ | |||
1 | /* | ||
2 | * Platform data definitions for Atmel USBA gadget driver. | ||
3 | */ | ||
4 | #ifndef __LINUX_USB_USBA_H | ||
5 | #define __LINUX_USB_USBA_H | ||
6 | |||
7 | struct usba_ep_data { | ||
8 | char *name; | ||
9 | int index; | ||
10 | int fifo_size; | ||
11 | int nr_banks; | ||
12 | int can_dma; | ||
13 | int can_isoc; | ||
14 | }; | ||
15 | |||
16 | struct usba_platform_data { | ||
17 | int vbus_pin; | ||
18 | int num_ep; | ||
19 | struct usba_ep_data ep[0]; | ||
20 | }; | ||
21 | |||
22 | #endif /* __LINUX_USB_USBA_H */ | ||