[U-Boot] [PATCH] usb.h: Add udc_disconnect prototype to usb.h
Lukasz Dalek
luk0104 at gmail.com
Wed Sep 26 15:44:25 CEST 2012
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 at gmail.com>
---
include/usb.h | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/include/usb.h b/include/usb.h
index ba3d169..25c3255 100644
--- a/include/usb.h
+++ b/include/usb.h
@@ -166,6 +166,13 @@ 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
+/*
+ * This isn't host
+ */
+#elif defined(CONFIG_USB_GADGET_PXA2XX)
+
+extern void udc_disconnect(void);
+
#else
#error USB Lowlevel not defined
#endif
--
1.7.8.6
More information about the U-Boot
mailing list