]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
usb.h: Add udc_disconnect prototype to usb.h
authorLukasz Dalek <luk0104@gmail.com>
Tue, 2 Oct 2012 15:04:33 +0000 (17:04 +0200)
committerTom Rini <trini@ti.com>
Mon, 15 Oct 2012 18:54:02 +0000 (11:54 -0700)
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>
include/usb.h

index 292a0425d85c157d276ff9101baf94bd404f896a..9dd879194752a829f93cb5b1cfadf4e9df55a2ab 100644 (file)
@@ -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