aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/core.h
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2012-04-24 09:19:49 -0400
committerFelipe Balbi <balbi@ti.com>2012-05-02 02:43:08 -0400
commit865e09e71622f92a46b47019500632bf5bc010a8 (patch)
tree8f1074c7ae71c32c309bd014c9540e142908b58c /drivers/usb/dwc3/core.h
parentb09bb64239c83113b8b35fa6a1ecae43d8297eaa (diff)
usb: dwc3: ep0: implement Set SEL support
This patch implements Set SEL Standard Request support for dwc3 driver. It needs to issue a command to the controller passing the timing we received on the data phase of the Set SEL request. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/core.h')
-rw-r--r--drivers/usb/dwc3/core.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
index 42641ada9e2d..39fbd154dc11 100644
--- a/drivers/usb/dwc3/core.h
+++ b/drivers/usb/dwc3/core.h
@@ -575,6 +575,10 @@ struct dwc3_request {
575 * @setup_packet_pending: true when there's a Setup Packet in FIFO. Workaround 575 * @setup_packet_pending: true when there's a Setup Packet in FIFO. Workaround
576 * @needs_fifo_resize: not all users might want fifo resizing, flag it 576 * @needs_fifo_resize: not all users might want fifo resizing, flag it
577 * @resize_fifos: tells us it's ok to reconfigure our TxFIFO sizes. 577 * @resize_fifos: tells us it's ok to reconfigure our TxFIFO sizes.
578 * @u2sel: parameter from Set SEL request.
579 * @u2pel: parameter from Set SEL request.
580 * @u1sel: parameter from Set SEL request.
581 * @u1pel: parameter from Set SEL request.
578 * @ep0_next_event: hold the next expected event 582 * @ep0_next_event: hold the next expected event
579 * @ep0state: state of endpoint zero 583 * @ep0state: state of endpoint zero
580 * @link_state: link state 584 * @link_state: link state
@@ -641,7 +645,13 @@ struct dwc3 {
641 enum dwc3_link_state link_state; 645 enum dwc3_link_state link_state;
642 enum dwc3_device_state dev_state; 646 enum dwc3_device_state dev_state;
643 647
648 u16 u2sel;
649 u16 u2pel;
650 u8 u1sel;
651 u8 u1pel;
652
644 u8 speed; 653 u8 speed;
654
645 void *mem; 655 void *mem;
646 656
647 struct dwc3_hwparams hwparams; 657 struct dwc3_hwparams hwparams;