phy: rockchip-inno-usb2: support to control vbus by gpio
authorMeng Dongyang <daniel.meng@rock-chips.com>
Mon, 23 Jan 2017 06:25:57 +0000 (14:25 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 20 Feb 2017 08:45:43 +0000 (16:45 +0800)
commit4b2fed4e9cd72a41831d10be9a4fa3b48ca14b04
tree5e77f0d0072190726dbe55a5b3195aca786400db
parent7e8da6e70c8eea664c4310a156976568c5d9f0d3
phy: rockchip-inno-usb2: support to control vbus by gpio

The current code of u2phy set vbus level by set cable state of power
controller, so we can't control vbus level if the platform use gpio
to control vbus. This patch add gpio in u2phy driver and set vbus
level if the mode of usb is detect by u2phy.

Change-Id: I84e966b6e24cb9b6a199fcaad0c509fc003089de
Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
drivers/phy/phy-rockchip-inno-usb2.c