diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-27 16:35:49 +1300 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-01 05:50:59 +0000 |
commit | 74b5f99f27d4f40a003c3e8f76151b4a9cbb158a (patch) | |
tree | 5c795da46adc35c7adb20c48765aecfbc0ae64ac /zephyr/Kconfig.battery | |
parent | 94c95b81eacc42ffd40e0274aec4c3dae59887fa (diff) | |
download | chrome-ec-74b5f99f27d4f40a003c3e8f76151b4a9cbb158a.tar.gz |
zephyr: Add support for overriding the charger profile
Add support for CONFIG_CHARGER_PROFILE_OVERRIDE so that this feature
can be enabled for lazor.
BUG=b:183296099
BRANCH=none
TEST=with other CLs, build zephyr for lazor and see that the option is
present
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: I7f3f6e6448209614489ac0b3f607404c43dd9a43
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2788835
Reviewed-by: Yuval Peress <peress@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'zephyr/Kconfig.battery')
-rw-r--r-- | zephyr/Kconfig.battery | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/zephyr/Kconfig.battery b/zephyr/Kconfig.battery index 4a41f7f60e..23614e243b 100644 --- a/zephyr/Kconfig.battery +++ b/zephyr/Kconfig.battery @@ -218,6 +218,19 @@ 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_PROFILE_OVERRIDE + bool "Override the charger profile" + help + Select this if the charger should call battery_override_params() to + limit/correct the voltage and current requested by the battery pack + before acting on the request. + + The board must provide this function: + + void battery_override_params(struct batt_params *batt); + + It may modify the parameters as needed. + config PLATFORM_EC_CHARGER_SENSE_RESISTOR int "Value of the charge sense-resistor, in mOhms" help |