summaryrefslogtreecommitdiff
path: root/include/linux/usb
diff options
context:
space:
mode:
authorStelian Pop <stelian@popies.net>2008-03-04 23:00:00 (GMT)
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>2008-04-06 21:15:08 (GMT)
commit8d855317fcf7fd9bd900d1e5ef1bea1b14bbe6af (patch)
tree50ac64812c3220088ea5b969ae07af7c1987ee5a /include/linux/usb
parent8d12c32c19a2719f6a96a23e94d95699c47e55d0 (diff)
downloadlinux-fsl-qoriq-8d855317fcf7fd9bd900d1e5ef1bea1b14bbe6af.tar.xz
atmel_usba_udc: move endpoint declarations into platform data.
The atmel_usba_udc driver is being used by several platforms and arches (avr32 and at91 ATM), and each platform may have different endpoint settings. The patch below moves the endpoint declarations into the platform data and make the necessary adjustments for AVR32 (improved by Haavard Skinnemoen <hskinnemoen@atmel.com>). Signed-off-by: Stelian Pop <stelian@popies.net> Acked-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'include/linux/usb')
-rw-r--r--include/linux/usb/atmel_usba_udc.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/linux/usb/atmel_usba_udc.h b/include/linux/usb/atmel_usba_udc.h
new file mode 100644
index 0000000..6311fa2
--- /dev/null
+++ b/include/linux/usb/atmel_usba_udc.h
@@ -0,0 +1,22 @@
+/*
+ * Platform data definitions for Atmel USBA gadget driver.
+ */
+#ifndef __LINUX_USB_USBA_H
+#define __LINUX_USB_USBA_H
+
+struct usba_ep_data {
+ char *name;
+ int index;
+ int fifo_size;
+ int nr_banks;
+ int can_dma;
+ int can_isoc;
+};
+
+struct usba_platform_data {
+ int vbus_pin;
+ int num_ep;
+ struct usba_ep_data ep[0];
+};
+
+#endif /* __LINUX_USB_USBA_H */