summaryrefslogtreecommitdiff
path: root/board/gimble
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2021-11-11 17:43:10 -0800
committerCommit Bot <commit-bot@chromium.org>2021-11-13 00:24:03 +0000
commit062f33658aabdfb9255a0deda301e88b09d04804 (patch)
treefe450a85d36aa3be77b5023df022f3a464389c28 /board/gimble
parenta2cdbd60e4de8b45054f1c032868d6c7232d3299 (diff)
downloadchrome-ec-062f33658aabdfb9255a0deda301e88b09d04804.tar.gz
bq25710: Make VSYS_TH2 Kconfig friendly
This adds the CONFIG_CHARGER_BQ25720_VSYS_TH2_CUSTOM config option to decide if CONFIG_CHARGER_BQ25720_VSYS_TH2_DV should be applied. It is no longer sufficient to set CONFIG_CHARGER_BQ25720_VSYS_TH2_DV to the desired value. This matches how defines are generated by kconfig and allows IS_ENABLED() to be used. BRANCH=none BUG=b:185190976 TEST=buildall passes Signed-off-by: Caveh Jalali <caveh@chromium.org> Change-Id: Ie3a6aa2d585d7975ada2863fd20ad296b23d504c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3277938 Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Boris Mittelberg <bmbm@google.com> Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/gimble')
-rw-r--r--board/gimble/board.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/gimble/board.h b/board/gimble/board.h
index ad32957653..96c8e6326d 100644
--- a/board/gimble/board.h
+++ b/board/gimble/board.h
@@ -179,6 +179,7 @@
/* Charger defines */
#define CONFIG_CHARGER_BQ25720
+#define CONFIG_CHARGER_BQ25720_VSYS_TH2_CUSTOM
#define CONFIG_CHARGER_BQ25720_VSYS_TH2_DV 70
#define CONFIG_CHARGE_RAMP_SW
#define CONFIG_CHARGER_BQ25710_SENSE_RESISTOR 10