summaryrefslogtreecommitdiff
path: root/include/usb
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2019-04-21 19:00:04 -0400
committerTom Rini <[email protected]>2019-04-21 19:00:04 -0400
commit6c5f8dd540d7a8eff244d4c27a09451ca12c8d20 (patch)
tree9eaba554d99f15aa5dfc302c338f59895f9b43e4 /include/usb
parentb4fde1633e67bb618fd33aad6e6322b7cecf1154 (diff)
parent7fd9f31c6bd13609da61b985cf8f5f65ebebd913 (diff)
Merge branch 'master' of git://git.denx.de/u-boot-usb
- Various fastboot, dwc2/stm32 updates
Diffstat (limited to 'include/usb')
-rw-r--r--include/usb/dwc2_udc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/usb/dwc2_udc.h b/include/usb/dwc2_udc.h
index 4068de045dc..a6c12212a9b 100644
--- a/include/usb/dwc2_udc.h
+++ b/include/usb/dwc2_udc.h
@@ -9,6 +9,7 @@
#define __DWC2_USB_GADGET
#define PHY0_SLEEP (1 << 5)
+#define DWC2_MAX_HW_ENDPOINTS 16
struct dwc2_plat_otg_data {
void *priv;
@@ -22,8 +23,14 @@ struct dwc2_plat_otg_data {
unsigned int rx_fifo_sz;
unsigned int np_tx_fifo_sz;
unsigned int tx_fifo_sz;
+ unsigned int tx_fifo_sz_array[DWC2_MAX_HW_ENDPOINTS];
+ unsigned char tx_fifo_sz_nb;
+ bool force_b_session_valid;
+ bool activate_stm_id_vb_detection;
};
int dwc2_udc_probe(struct dwc2_plat_otg_data *pdata);
+int dwc2_udc_B_session_valid(struct udevice *dev);
+
#endif /* __DWC2_USB_GADGET */