summaryrefslogtreecommitdiff
path: root/baseboard
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 /baseboard
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 'baseboard')
-rw-r--r--baseboard/intelrvp/adlrvp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/baseboard/intelrvp/adlrvp.h b/baseboard/intelrvp/adlrvp.h
index ab0471adaf..4edc9a9da3 100644
--- a/baseboard/intelrvp/adlrvp.h
+++ b/baseboard/intelrvp/adlrvp.h
@@ -124,6 +124,7 @@
#define CONFIG_CHARGER_ISL9241
/* Charger chip on ADL-N */
#define CONFIG_CHARGER_BQ25720
+#define CONFIG_CHARGER_BQ25720_VSYS_TH2_CUSTOM
#define CONFIG_CHARGER_BQ25720_VSYS_TH2_DV 70
#define CONFIG_CHARGER_BQ25710_SENSE_RESISTOR 10
#define CONFIG_CHARGER_BQ25710_SENSE_RESISTOR_AC 10