summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2013-02-23 17:02:14 +0800
committerChromeBot <chrome-bot@google.com>2013-02-25 22:22:34 -0800
commit10f34bf8a99204b78bc7318d988048f180059a60 (patch)
tree99eaaf866c1edef3dcc261c006b291b339e28ce8
parent998c0344b55442376fe970c2183e800c9188dfb4 (diff)
downloadchrome-ec-10f34bf8a99204b78bc7318d988048f180059a60.tar.gz
Allow TSU6721 auto mode under any condition
Although TSU6721 cannot go manual mode under certain conditions, it is able to go auto mode no matter what. BUG=chrome-os-partner:14318 TEST=Manual on Spring. BRANCH=none Change-Id: Iba8b9bf815a4c0e5a3462e72c4afe85571845d33 Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/43864 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r--common/tsu6721.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/tsu6721.c b/common/tsu6721.c
index 95a63a76bf..7f3d1d0c7e 100644
--- a/common/tsu6721.c
+++ b/common/tsu6721.c
@@ -98,7 +98,7 @@ int tsu6721_mux(enum tsu6721_mux sel)
* activate manual mode if it is not detecting either a VBUS or
* something known on the ID pin
*/
- if ((id == 0x1f) && !vbus1 && !vbus3) {
+ if (sel != TSU6721_MUX_AUTO && (id == 0x1f) && !vbus1 && !vbus3) {
CPRINTF("TSU6721 cannot use manual mode: no VBUS or ID\n");
return EC_ERROR_INVAL;
}