usb: dwc_otg_310: support vbus controlled by both gpio and pmic
authorWilliam Wu <wulf@rock-chips.com>
Fri, 14 Apr 2017 09:51:27 +0000 (17:51 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 17 Apr 2017 00:54:22 +0000 (08:54 +0800)
commit9a47b6de548a83d198e2a92b53fe735c62832515
treecf27ef570bb6a6f63aa8e7475d9dd00f13f97bf0
parentb4e7e31d6a73b8a93e73bb409d495171c4cc09f1
usb: dwc_otg_310: support vbus controlled by both gpio and pmic

On some rockchip platforms (e.g. rk3368), usb vbus 5v is controlled
by both gpio and pmic at the same time. So we need to set gpio and
pmic when enable/disable usb vbus power.

Change-Id: I327a87f16662026eaab1b6577d0b0116c4b2671f
Signed-off-by: William Wu <wulf@rock-chips.com>
drivers/usb/dwc_otg_310/usbdev_rk3036.c
drivers/usb/dwc_otg_310/usbdev_rk3126.c
drivers/usb/dwc_otg_310/usbdev_rk32.c
drivers/usb/dwc_otg_310/usbdev_rk3368.c