summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2021-11-08 19:20:26 -0800
committerCommit Bot <commit-bot@chromium.org>2021-11-11 20:58:24 +0000
commit861ec5cdbd133f55cd0dd786ae847a109e39d868 (patch)
tree416128d2b622ebe02e146fca7deede6241beac76 /include
parentdb9d4127c375bab318861a8c4d0f738a6b7e88b7 (diff)
downloadchrome-ec-861ec5cdbd133f55cd0dd786ae847a109e39d868.tar.gz
bq25710: Allow EN_ACOC to be configured
This adds support for enabling AC over-current protection (EN_ACOC bit). The converter turns off when the OC threshold is reached. The threshold is determined by the ACOC_VTH bit. BRANCH=none BUG=b:185190976 TEST=buildall passes Signed-off-by: Caveh Jalali <caveh@chromium.org> Change-Id: I1bc8e34ee4e7cef0d6d796387eb4f290fada82d4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3274999 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/config.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 1cd6631409..ae90ec5ef2 100644
--- a/include/config.h
+++ b/include/config.h
@@ -1071,6 +1071,13 @@
#undef CONFIG_CHARGER_BQ25710_CMP_REF_1P2
/*
+ * This config option is used to enable the charger's AC over-current
+ * protection. The converter turns off when the OC threshold is
+ * reached. The threshold is selected using the ACOC_VTH bit.
+ */
+#undef CONFIG_CHARGER_BQ25710_EN_ACOC
+
+/*
* Board specific maximum input current limit, in mA.
*/
#undef CONFIG_CHARGER_MAX_INPUT_CURRENT