Skip to content
Snippets Groups Projects
Commit e5f24753 authored by Lukasz Dalek's avatar Lukasz Dalek Committed by Tom Rini
Browse files

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: default avatarLukasz Dalek <luk0104@gmail.com>
parent 3c09a283
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment