diff options
author | Robert Jarzmik <robert.jarzmik@free.fr> | 2009-01-25 02:56:42 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-03-24 19:20:26 -0400 |
commit | b799a7eb68082af620b7e37b6f41c98802e831f6 (patch) | |
tree | 3e03ef6d83eac47675ccb673432a862de29578f2 /drivers/usb/gadget/pxa27x_udc.h | |
parent | eb50702539f9be3765127d927d3e9ccfeb65f26e (diff) |
USB: pxa27x_udc: add vbus session handling
On vbus_session() call, optionally activate D+ pullup
resistor and enable the udc, or deactivate D+ pullup
resistor and disable the udc.
It is intentional to not handle any VBus sense related irq.
An external transceiver driver (like gpio_vbus) should
catch VBus sense signal, and call usb_gadget_vbus_connect()
or usb_gadget_vbus_disconnect().
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/pxa27x_udc.h')
-rw-r--r-- | drivers/usb/gadget/pxa27x_udc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/pxa27x_udc.h b/drivers/usb/gadget/pxa27x_udc.h index 6f5234dff8a5..64741e199204 100644 --- a/drivers/usb/gadget/pxa27x_udc.h +++ b/drivers/usb/gadget/pxa27x_udc.h | |||
@@ -456,6 +456,7 @@ struct pxa_udc { | |||
456 | unsigned enabled:1; | 456 | unsigned enabled:1; |
457 | unsigned pullup_on:1; | 457 | unsigned pullup_on:1; |
458 | unsigned pullup_resume:1; | 458 | unsigned pullup_resume:1; |
459 | unsigned vbus_sensed:1; | ||
459 | unsigned config:2; | 460 | unsigned config:2; |
460 | unsigned last_interface:3; | 461 | unsigned last_interface:3; |
461 | unsigned last_alternate:3; | 462 | unsigned last_alternate:3; |