CHROMIUM: usb: allow to de-activate some ports on EHCI root hub
authorVincent Palatin <vpalatin@chromium.org>
Fri, 16 Nov 2012 20:22:44 +0000 (12:22 -0800)
committerGerrit <chrome-bot@google.com>
Wed, 5 Dec 2012 18:50:59 +0000 (10:50 -0800)
commit8cdd276d79296574271fab9c67e92a3bab2ea8b7
tree7d41db2d6fc36ec4e1c879a64cac9db5bc32cec2
parentc854a67f9b5091a3297ada803b7fb3cf3aa00de4
CHROMIUM: usb: allow to de-activate some ports on EHCI root hub

To optimize power consumption and sometimes avoid electrical conflicts
on the board, we might want to avoid activating some of the ports on
the root hub.
The platform specific part of the driver can optionally provide a bitmap
of the enabled ports. By default, all ports are enabled.

This might be reverted once we have another mechanism to control VBUS
regulator on the next hardware revision.

Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BUG=chrome-os-partner:14490
TEST=boot on Spring, verify that port 0 regulator is not enabled and
port 1 is detecting a USB key correctly.
boot on Snow, verify that port 0 is detecting a USB key

Change-Id: Ib08d18a105e366b37f5117a6f7c0e1e56e04dce5
Reviewed-on: https://gerrit.chromium.org/gerrit/38222
Commit-Ready: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Olof Johansson <olofj@chromium.org>
Documentation/devicetree/bindings/usb/exynos-ehci.txt [new file with mode: 0644]
drivers/usb/host/ehci-hub.c
drivers/usb/host/ehci-s5p.c
drivers/usb/host/ehci.h