summaryrefslogtreecommitdiff
path: root/driver/charger/isl923x.h
diff options
context:
space:
mode:
authorAseda Aboagye <aaboagye@google.com>2017-10-30 17:38:02 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-11-13 15:25:49 -0800
commitf539b9de817cd07e1ba8289484d61ad300f27d97 (patch)
treed1955e1a5451bd1e43fd750f662a4a286f91af32 /driver/charger/isl923x.h
parent20d7149b1956f9b487cfc46f6adeac137dd779c5 (diff)
downloadchrome-ec-f539b9de817cd07e1ba8289484d61ad300f27d97.tar.gz
isl9238: Raise min input voltage limit.
The ISL9238 has functionality for a input voltage regulation loop. By default, the regulation reference voltage is set to 4096mV, however we can be kinder to chargers by raising this regulation reference. In testing, there appears to be insignificant change in current pulled at the higher limit. BUG=b:67964166 BRANCH=None TEST=Flash a board with a ISL9238, verify that 0x4b reads as 0x0d00. TEST=make -j buildall Change-Id: I920c4b922106fca3001f2759cad0479a368f735b Signed-off-by: Aseda Aboagye <aaboagye@google.com> Reviewed-on: https://chromium-review.googlesource.com/745527 Commit-Ready: Aseda Aboagye <aaboagye@chromium.org> Tested-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'driver/charger/isl923x.h')
-rw-r--r--driver/charger/isl923x.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/driver/charger/isl923x.h b/driver/charger/isl923x.h
index 1681944e64..fc89e2dec7 100644
--- a/driver/charger/isl923x.h
+++ b/driver/charger/isl923x.h
@@ -221,6 +221,10 @@
#define ISL923X_OTG_CURRENT_STEP 128
#define ISL923X_OTG_CURRENT_SHIFT 7
+/* Input voltage regulation voltage reference */
+#define ISL9238_INPUT_VOLTAGE_REF_STEP 341
+#define ISL9238_INPUT_VOLTAGE_REF_SHIFT 8
+
/* Info register fields */
#define ISL9237_INFO_PROG_RESISTOR_MASK 0xf
#define ISL923X_INFO_TRICKLE_ACTIVE_MASK (1 << 4)