diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2013-11-12 14:25:03 -0800 |
---|---|---|
committer | Vincent Palatin <vpalatin@chromium.org> | 2013-11-13 02:51:21 +0000 |
commit | 25ff5e7ece90b34e44531a6ce7b945781298d049 (patch) | |
tree | 3734c9113ab8de8dcb0cbc86faff31e123678354 | |
parent | f559be562aabdefa6c8e04f6403d921acf101eb2 (diff) | |
download | chrome-ec-25ff5e7ece90b34e44531a6ce7b945781298d049.tar.gz |
spring: force re-detection when seeing DCP charger
Sometimes the ID pin value read by the ADC is not stable for Type 1
chargers, the TSU6721 ends up deciding its a DCP charger (since DP/DN
are wired as DCP), a second detection fixes that issue.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=spring
BUG=chrome-os-partner:23987
TEST=On Spring, plug and unplug Liteon power brick lots of times and
check detected type.
Change-Id: If2eb58fa018ed8ca5231b98dab250038f6be3cd0
Reviewed-on: https://chromium-review.googlesource.com/176577
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r-- | board/spring/usb_charging.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/board/spring/usb_charging.c b/board/spring/usb_charging.c index bf91e257a5..a0445efc1a 100644 --- a/board/spring/usb_charging.c +++ b/board/spring/usb_charging.c @@ -835,6 +835,7 @@ static int usb_want_redetect(int dev_type) dev_type & TSU6721_TYPE_USB_HOST) return 1; return (dev_type & TSU6721_TYPE_NON_STD_CHG) || + (dev_type & TSU6721_TYPE_DCP) || (dev_type == TSU6721_TYPE_VBUS_DEBOUNCED); } |