summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@st.com>2020-10-15 15:49:37 +0300
committerMarek Vasut <marex@denx.de>2020-11-22 15:18:20 +0300
commit5739ef2bcb6dc04414d9a06063d4c85e793884ba (patch)
treeacb1fe8b6507d29aa4cc2b24bdfa83bf0ef300e6 /include
parent12e396303c487c9f0fdf8d36d31a97cd2dada643 (diff)
downloadu-boot-5739ef2bcb6dc04414d9a06063d4c85e793884ba.tar.xz
usb: dwc2: add "u-boot,force-vbus-detection" for stm32
On some board, the ID pin is not connected so the B session must be overridden with "u-boot,force_b_session_valid" but the VBus sensing must continue to be handle. To managed it, this patch adds a new DT field "u-boot,force-vbus-detection" to use with "u-boot,force_b_session_valid" Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Diffstat (limited to 'include')
-rw-r--r--include/usb/dwc2_udc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/usb/dwc2_udc.h b/include/usb/dwc2_udc.h
index a2af381a66..aa37e957b4 100644
--- a/include/usb/dwc2_udc.h
+++ b/include/usb/dwc2_udc.h
@@ -28,6 +28,7 @@ struct dwc2_plat_otg_data {
unsigned int tx_fifo_sz_array[DWC2_MAX_HW_ENDPOINTS];
unsigned char tx_fifo_sz_nb;
bool force_b_session_valid;
+ bool force_vbus_detection;
bool activate_stm_id_vb_detection;
};