aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/pxa27x_udc.h
diff options
context:
space:
mode:
authorRobert Jarzmik <robert.jarzmik@free.fr>2009-01-25 02:55:34 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2009-03-24 19:20:26 -0400
commiteb50702539f9be3765127d927d3e9ccfeb65f26e (patch)
treedcb3885aa1c037c2a2113d2451a28bd5a5c18537 /drivers/usb/gadget/pxa27x_udc.h
parentc2344f13b59e007d782a3e591ebc551bc583a8b7 (diff)
USB: pxa27x_udc: factor pullup code to prepare otg transceiver
Prepare pxa27x_udc to handle usb D+ pullup properly : it should connect the pullup resistor and disconnect it only if no external transceiver is handling it. [ dbrownell@users.sourceforge.net: kerneldoc and gpio fixes ] 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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/usb/gadget/pxa27x_udc.h b/drivers/usb/gadget/pxa27x_udc.h
index 1d1b7936ee11..6f5234dff8a5 100644
--- a/drivers/usb/gadget/pxa27x_udc.h
+++ b/drivers/usb/gadget/pxa27x_udc.h
@@ -425,6 +425,9 @@ struct udc_stats {
425 * @stats: statistics on udc usage 425 * @stats: statistics on udc usage
426 * @udc_usb_ep: array of usb endpoints offered by the gadget 426 * @udc_usb_ep: array of usb endpoints offered by the gadget
427 * @pxa_ep: array of pxa available endpoints 427 * @pxa_ep: array of pxa available endpoints
428 * @enabled: UDC was enabled by a previous udc_enable()
429 * @pullup_on: if pullup resistor connected to D+ pin
430 * @pullup_resume: if pullup resistor should be connected to D+ pin on resume
428 * @config: UDC active configuration 431 * @config: UDC active configuration
429 * @last_interface: UDC interface of the last SET_INTERFACE host request 432 * @last_interface: UDC interface of the last SET_INTERFACE host request
430 * @last_alternate: UDC altsetting of the last SET_INTERFACE host request 433 * @last_alternate: UDC altsetting of the last SET_INTERFACE host request
@@ -450,6 +453,9 @@ struct pxa_udc {
450 struct udc_usb_ep udc_usb_ep[NR_USB_ENDPOINTS]; 453 struct udc_usb_ep udc_usb_ep[NR_USB_ENDPOINTS];
451 struct pxa_ep pxa_ep[NR_PXA_ENDPOINTS]; 454 struct pxa_ep pxa_ep[NR_PXA_ENDPOINTS];
452 455
456 unsigned enabled:1;
457 unsigned pullup_on:1;
458 unsigned pullup_resume:1;
453 unsigned config:2; 459 unsigned config:2;
454 unsigned last_interface:3; 460 unsigned last_interface:3;
455 unsigned last_alternate:3; 461 unsigned last_alternate:3;