summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukasz Dalek <luk0104@gmail.com>2012-10-02 17:04:33 +0200
committerTom Rini <trini@ti.com>2012-10-15 11:54:02 -0700
commite5f24753c9b415adf12def520f051f60433068b4 (patch)
tree3a19c4079e14afff3ffa003c4f723f7af170f931
parent3c09a2836df2f0ca73396ce00104385f0a622015 (diff)
downloadu-boot-imx-e5f24753c9b415adf12def520f051f60433068b4.zip
u-boot-imx-e5f24753c9b415adf12def520f051f60433068b4.tar.gz
u-boot-imx-e5f24753c9b415adf12def520f051f60433068b4.tar.bz2
usb.h: Add udc_disconnect prototype to usb.h
PXA25x gadget implements common function usb_disconnect(). This patch adds this function prototype into usb.h for boards using it. Signed-off-by: Lukasz Dalek <luk0104@gmail.com>
-rw-r--r--include/usb.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/usb.h b/include/usb.h
index 292a042..9dd8791 100644
--- a/include/usb.h
+++ b/include/usb.h
@@ -169,6 +169,17 @@ int submit_int_msg(struct usb_device *dev, unsigned long pipe, void *buffer,
#define USB_UHCI_VEND_ID 0x8086
#define USB_UHCI_DEV_ID 0x7112
+/*
+ * PXA25x can only act as USB device. There are drivers
+ * which works with USB CDC gadgets implementations.
+ * Some of them have common routines which can be used
+ * in boards init functions e.g. udc_disconnect() used for
+ * forced device disconnection from host.
+ */
+#elif defined(CONFIG_USB_GADGET_PXA2XX)
+
+extern void udc_disconnect(void);
+
#else
#error USB Lowlevel not defined
#endif