summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2023-03-31 09:28:08 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-03-31 17:50:07 +0000
commitd32a3897184e7507a310b0d4a351d9dbd8f3bc0b (patch)
treeb512be5a037fa67e6cc083bc4e29a0afd08b8369 /include
parentd804f8408c628055d611b06a35fb533879afd969 (diff)
downloadchrome-ec-d32a3897184e7507a310b0d4a351d9dbd8f3bc0b.tar.gz
Charger: CONFIG gate bypass mode
Only two boards need the charger bypass mode feature, and it takes a fair amount of code space in flash (1.2k). Make this code logic opt-in to enable the bypass mode and enable the two boards which do use it. BRANCH=None BUG=b:273722902 TEST=util/compare_build.sh -b hades and util/compare_build.sh -b agah passes, other boards build and consume less flash space Change-Id: I90d781340389eb2f259d13b69eb2882b16bf0c4d Signed-off-by: Diana Z <dzigterman@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4388379 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 544f8811a6..913ee59c64 100644
--- a/include/config.h
+++ b/include/config.h
@@ -1313,6 +1313,13 @@
*/
#undef CONFIG_BATTERY_MAX_IMBALANCE_MV
+/*
+ * Select this option if the charger will be used in a bypass mode in
+ * order to pass the input current from AC directly to the system
+ * power rail for efficiency.
+ */
+#undef CONFIG_CHARGER_BYPASS_MODE
+
/* Set this option when using a Narrow VDC (NVDC) charger, such as ISL9237/8. */
#undef CONFIG_CHARGER_NARROW_VDC