usb: dwc2: add support for external vbus supply
authorKever Yang <kever.yang@rock-chips.com>
Fri, 10 Mar 2017 04:05:14 +0000 (12:05 +0800)
committerMarek Vasut <marex@denx.de>
Fri, 14 Apr 2017 12:07:46 +0000 (14:07 +0200)
commit5c73536738e1aa411b127d84dff41a5e60a4e610
tree92e78508316b210ed09880c65886df02566e1423
parent40a808f173008729a0c631ab84693b6a2b0dcfc9
usb: dwc2: add support for external vbus supply

Some board do not use the dwc2 internal VBUS_DRV signal, but
use a gpio pin to enable the 5.0V VBUS power, add interface to
enable the power in dwc2 driver.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/usb/host/dwc2.c