]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: chipidea: host: add vbus regulator control
authorPeter Chen <peter.chen@freescale.com>
Mon, 12 Aug 2013 01:22:48 +0000 (09:22 +0800)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:54:48 +0000 (09:54 +0800)
commit2622e05bcfc5ab85fbae68ac02e6a16a9c718576
treef7f690dfa4830c68aecbaa5898a2bfc83d0d67ae
parentf17ddf48040c984e477a0c659ca834c202040ed2
usb: chipidea: host: add vbus regulator control

For boards which have board level vbus control (eg, through gpio), we
need to vbus operation according to below rules:
- For host, we need open vbus before start hcd, and close it
after remove hcd.
- For otg, the vbus needs to be on/off when usb role switches.
When the host roles begins, it opens vbus; when the host role
finishes, it closes vbus.

We put vbus operation to host as host is the only vbus user,
When we are at host mode, the vbus is on, when we are not at
host mode, vbus should be off.

Tested-by: Marek Vasut <marex@denx.de>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
drivers/usb/chipidea/host.c