diff options
author | Nicolas Boichat <drinkcat@chromium.org> | 2017-10-18 10:05:56 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-10-20 06:08:58 -0700 |
commit | ccfc005fa414a6faa45a4168e27669b62abe1d5d (patch) | |
tree | eb69eb883b846d0aac0dd0e94c5402fa968961d6 /driver/charger/isl923x.h | |
parent | 6336a7c7515867dc50a4a813e99324741630e455 (diff) | |
download | chrome-ec-ccfc005fa414a6faa45a4168e27669b62abe1d5d.tar.gz |
isl9238: Add support for providing power using OTG
BRANCH=none
BUG=b:66575472
TEST=Flash lux and wand, wand can provide power to lux.
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Change-Id: I59091c509b78bacf9f382550ab380a77fbf68ba9
Reviewed-on: https://chromium-review.googlesource.com/725122
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'driver/charger/isl923x.h')
-rw-r--r-- | driver/charger/isl923x.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/driver/charger/isl923x.h b/driver/charger/isl923x.h index 371227f902..1681944e64 100644 --- a/driver/charger/isl923x.h +++ b/driver/charger/isl923x.h @@ -211,10 +211,16 @@ #define ISL9238_C3_PSYS_GAIN (1 << 9) /* OTG voltage limit in mV, current limit in mA */ -#define ISL923X_OTG_VOLTAGE_MIN 4864 -#define ISL923X_OTG_VOLTAGE_MAX 5376 +#define ISL9237_OTG_VOLTAGE_MIN 4864 +#define ISL9237_OTG_VOLTAGE_MAX 5376 +#define ISL9238_OTG_VOLTAGE_MAX 27456 #define ISL923X_OTG_CURRENT_MAX 4096 +#define ISL9238_OTG_VOLTAGE_STEP 12 +#define ISL9238_OTG_VOLTAGE_SHIFT 3 +#define ISL923X_OTG_CURRENT_STEP 128 +#define ISL923X_OTG_CURRENT_SHIFT 7 + /* Info register fields */ #define ISL9237_INFO_PROG_RESISTOR_MASK 0xf #define ISL923X_INFO_TRICKLE_ACTIVE_MASK (1 << 4) |