usb: dwc2: add support for host mode external vbus supply
authorAmelie Delaunay <amelie.delaunay@st.com>
Tue, 13 Feb 2018 08:28:12 +0000 (09:28 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 13 Mar 2018 08:47:58 +0000 (10:47 +0200)
commit531ef5ebea96394ddb7f554d4d88e017dde30a59
tree94d752b38d07ffff4dd3e270b277ab73368e6354
parent13b1f8e25bfd1d6b96278421f934efdd35be9d5b
usb: dwc2: add support for host mode external vbus supply

This patch adds a way to enable an external vbus supply in host mode,
when dwc2 drvvbus signal is not used.

This patch is very similar to the one done in U-Boot dwc2 driver [1]. It
also adds dynamic vbus supply management depending on the role and state
of the core.

[1] https://lists.denx.de/pipermail/u-boot/2017-March/283434.html

Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/core.h
drivers/usb/dwc2/hcd.c