]> git.baikalelectronics.ru Git - kernel.git/commit
usb: chipidea: host: add vbus regulator control
authorPeter Chen <peter.chen@freescale.com>
Wed, 14 Aug 2013 09:44:04 +0000 (12:44 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2013 19:34:17 +0000 (12:34 -0700)
commit410168de7e59a924f09118f257b3e60ec14066f6
tree318195abfcad3595731be8bf3469611a1457959f
parentb2f6c8a7f8a76194630a3de7bc316ed2c3027fec
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/host.c