]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: dwc2: add "u-boot,force-vbus-detection" for stm32
authorPatrick Delaunay <patrick.delaunay@st.com>
Thu, 15 Oct 2020 12:49:37 +0000 (14:49 +0200)
committerMarek Vasut <marex@denx.de>
Sun, 22 Nov 2020 12:18:20 +0000 (13:18 +0100)
commit5739ef2bcb6dc04414d9a06063d4c85e793884ba
treeacb1fe8b6507d29aa4cc2b24bdfa83bf0ef300e6
parent12e396303c487c9f0fdf8d36d31a97cd2dada643
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>
drivers/usb/gadget/dwc2_udc_otg.c
drivers/usb/gadget/dwc2_udc_otg_regs.h
include/usb/dwc2_udc.h