summaryrefslogtreecommitdiff
path: root/driver/charger/isl923x.h
diff options
context:
space:
mode:
authorAseda Aboagye <aaboagye@google.com>2021-03-29 20:16:35 -0700
committerCommit Bot <commit-bot@chromium.org>2021-03-30 17:49:53 +0000
commit6810f49dfeb4f41cf53952192d74c71c7ab15e99 (patch)
treefbb7c7dce9ec75d0fa7f547eca56ae7967cf24e4 /driver/charger/isl923x.h
parentbf5368700249a9a29ab6e4358115362a0ef7ae09 (diff)
downloadchrome-ec-6810f49dfeb4f41cf53952192d74c71c7ab15e99.tar.gz
raa489000: Add raa489000_enable_asgate()
This commit exports a function to allow the ASGATE to be enabled or disabled when the charger IC is in the READY state. This can help to achieve a VBUS level of 0V if the READY state is required/desired. BUG=b:183220414 BRANCH=dedede TEST=With some other patches to use this function, build and flash on madoo, plug in a charger, remove charger, verify that VBUS goes down to less than 200mV and decays to 0. Signed-off-by: Aseda Aboagye <aaboagye@google.com> Change-Id: Icb5316d9c206138e68fa4e55dee5b454182921e9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2793057 Tested-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'driver/charger/isl923x.h')
-rw-r--r--driver/charger/isl923x.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/driver/charger/isl923x.h b/driver/charger/isl923x.h
index 69bc82389c..1ab0973b03 100644
--- a/driver/charger/isl923x.h
+++ b/driver/charger/isl923x.h
@@ -270,6 +270,7 @@
/* Control8: MCU_LDO - BAT state disable */
#define RAA489000_C8_MCU_LDO_BAT_STATE_DISABLE BIT(14)
+#define RAA489000_C8_ASGATE_ON_READY BIT(13)
/* OTG voltage limit in mV, current limit in mA */
#define ISL9237_OTG_VOLTAGE_MIN 4864