summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.battery
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-03-27 15:52:27 +1300
committerCommit Bot <commit-bot@chromium.org>2021-04-01 05:50:51 +0000
commit6c1b3648fd83c8e260e46f9b038fa79c6d0458b4 (patch)
tree8efd76436247a95aac3a3abacb5476083b382a32 /zephyr/Kconfig.battery
parent338ad19ff83e09b5ce59ed2c10c45ef191ea0482 (diff)
downloadchrome-ec-6c1b3648fd83c8e260e46f9b038fa79c6d0458b4.tar.gz
zephyr: Add support for setting charger sense-resistors
We need a different value for lazor, so move this to Kconfig. We may at some point move this to device tree. BUG=b:183296099, b:175881762 BRANCH=none TEST=with other CLs, build zephyr for lazor and see that the option is present build config for volteer and make sure it has not changed Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I7b5fa6a03ba24028006f6a1a8516e9244308fe76 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2788833 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/Kconfig.battery')
-rw-r--r--zephyr/Kconfig.battery14
1 files changed, 14 insertions, 0 deletions
diff --git a/zephyr/Kconfig.battery b/zephyr/Kconfig.battery
index a7ad8d74aa..4a41f7f60e 100644
--- a/zephyr/Kconfig.battery
+++ b/zephyr/Kconfig.battery
@@ -218,6 +218,20 @@ config PLATFORM_EC_CHARGER_NARROW_VDC
This should be enabled by charger drivers which need it. It cannot
be set otherwise, even in prj.conf
+config PLATFORM_EC_CHARGER_SENSE_RESISTOR
+ int "Value of the charge sense-resistor, in mOhms"
+ help
+ The charge sense-resistor is used to detect the charge current to the
+ battery. Its value must be known for the calculation to be correct.
+ The value is typically around 10 mOhms.
+
+config PLATFORM_EC_CHARGER_SENSE_RESISTOR_AC
+ int "Value of the input sense-resistor, in mOhms"
+ help
+ The input sense-resistor is used to detect the input current from the
+ external AC power supply. Its value must be known for the calculation
+ to be correct. The value is typically around 10 mOhms.
+
config PLATFORM_EC_BATTERY_FUEL_GAUGE
bool "Board supplies battery info"
help