diff options
author | Caveh Jalali <caveh@chromium.org> | 2021-10-28 21:11:01 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-11-01 16:59:59 +0000 |
commit | f78ff015a80e4be41fc70f3690d4a27996d3de38 (patch) | |
tree | 0fced249c545bf896b3ad46d2ab25d179d3ecb7d /zephyr/Kconfig.battery | |
parent | 753008b1b35247b8276be31b06bb6d7295a2d76c (diff) | |
download | chrome-ec-f78ff015a80e4be41fc70f3690d4a27996d3de38.tar.gz |
bq25710: Add PSYS sensing configuration
This adds a new config option to enable the PSYS monitoring feature on
the BQ25710, BQ25720 chargers. The register definition for configuring
PSYS on the BQ25720 is expanded to 2 bits, giving more control to meaure
battery and AC separately. We keep it simple and include both when
measurement is enabled.
BRANCH=none
BUG=b:195615830
TEST=with rest of patch series, psys values reported by
dump_intel_rapl_consumption look reasonable
Change-Id: I0f299c6a24d20ef5bdcda13de74b30ba0c2d5d3c
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3253076
Reviewed-by: Ryan Lin <ryan.lin@intel.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/Kconfig.battery')
-rw-r--r-- | zephyr/Kconfig.battery | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/zephyr/Kconfig.battery b/zephyr/Kconfig.battery index d7e5e459da..feddbc421b 100644 --- a/zephyr/Kconfig.battery +++ b/zephyr/Kconfig.battery @@ -250,6 +250,17 @@ endchoice # "Discharge control method" endif # PLATFORM_EC_CHARGER_DISCHARGE_ON_AC +config CONFIG_PLATFORM_EC_CHARGER_BQ25710_PSYS_SENSING + bool "Charger monitors PSYS" + default n + depends on PLATFORM_EC_CHARGER_BQ25710 || PLATFORM_EC_CHARGER_BQ25720 + help + This enables the PSYS sensing circuit on the BQ25710 and + BQ25720 chargers. This is used for system power monitoring on + board designs that support this capability. This circuit is + disabled by default (reset) and needs to be explicitly enabled + for meaningful results. + config PLATFORM_EC_CHARGER_BQ25710_SENSE_RESISTOR int "Value of the charge sense-resistor, in mOhms" default 10 |