summaryrefslogtreecommitdiff
path: root/driver/charger
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@chromium.org>2018-03-27 12:46:47 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-03-27 20:35:01 -0700
commitbd49214121c97797c551a4520ff5168100c60807 (patch)
treed7852ce96b09df8a29330007c1fa4f9eb6eac9a8 /driver/charger
parent46bd51a69aea8ceca135748ce87bff071637cdb0 (diff)
downloadchrome-ec-bd49214121c97797c551a4520ff5168100c60807.tar.gz
isl923x: Set OTG enable debounce time to 150ms
The default setting is to wait 1.3s from receiving the command, to enable the OTG output: that's too long, and makes time to active base very long when running on battery. BRANCH=none BUG=b:76396020 TEST=Probe POGO 1/5 and one of the USB lines, check that time from connect to active USB is reduced to 580 ms (from 1920 ms). Change-Id: Iee00fd27978434ccac052e60a94534919dc29f43 Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/981853 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'driver/charger')
-rw-r--r--driver/charger/isl923x.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/driver/charger/isl923x.c b/driver/charger/isl923x.c
index da2e84255a..97e540d62e 100644
--- a/driver/charger/isl923x.c
+++ b/driver/charger/isl923x.c
@@ -319,6 +319,7 @@ static void isl923x_init(void)
if (raw_write16(ISL923X_REG_CONTROL2,
reg |
+ ISL923X_C2_OTG_DEBOUNCE_150 |
ISL923X_C2_PROCHOT_DEBOUNCE_1000 |
ISL923X_C2_ADAPTER_DEBOUNCE_150))
goto init_fail;