From patchwork Tue Oct 2 15:04:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [U-Boot,v4,7/8] usb.h: Add udc_disconnect prototype to usb.h Date: Tue, 02 Oct 2012 05:04:33 -0000 From: =?utf-8?b?xYF1a2FzeiBEYcWCZWs=?= X-Patchwork-Id: 188542 Message-Id: <1349190274-1924-7-git-send-email-luk0104@gmail.com> To: u-boot@lists.denx.de Cc: marex@denx.de 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 --- include/usb.h | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/include/usb.h b/include/usb.h index ba3d169..b6642de 100644 --- a/include/usb.h +++ b/include/usb.h @@ -166,6 +166,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