diff options
author | Patrick Delaunay <patrick.delaunay@st.com> | 2020-10-15 14:49:37 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2020-11-22 13:18:20 +0100 |
commit | 5739ef2bcb6dc04414d9a06063d4c85e793884ba (patch) | |
tree | acb1fe8b6507d29aa4cc2b24bdfa83bf0ef300e6 /include/usb | |
parent | 12e396303c487c9f0fdf8d36d31a97cd2dada643 (diff) | |
download | u-boot-5739ef2bcb6dc04414d9a06063d4c85e793884ba.tar.gz |
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/usb')
-rw-r--r-- | include/usb/dwc2_udc.h | 1 |
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; }; |