diff options
author | Scott Collyer <scollyer@google.com> | 2017-09-27 17:27:14 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-05 10:35:02 +0000 |
commit | 77d42f15067217d6ac46bc31cb0bbc6bb18386fd (patch) | |
tree | a0716a70914d246dfee8ff07e156e25d89e19fe0 /board/eve/board.h | |
parent | 652a52a7d20cfc4795f21101832635b21bf6ea11 (diff) | |
download | chrome-ec-77d42f15067217d6ac46bc31cb0bbc6bb18386fd.tar.gz |
eve: Provide batteryparam implementation to disable CTO
The charger timeout threshold settings are not correct. This can lead
to the CTOS (charge timeout suspend) safety alert getting set. Until
the batteries flash can be updated, disable this check by clearing bit
4 of the protect_c register.
This CL implements battery_set_vendor_param() and
battery_get_vendor_param() where param of 0 means to disable the CTO
bit in the protect_c flash register (bit 4 of 0x482c).
BUG=b:66457399
BRANCH=eve
TEST=Sent 'ectool batteryparam set 0 <key>' and verifed that new value
of this register is 0x5. Also, used debug console command to write the
value back to 0x15 and repeated the test.
Change-Id: Ia77a505fddfbcedfe31a92caae37e09e0a7f17a1
Signed-off-by: Scott Collyer <scollyer@google.com>
Reviewed-on: https://chromium-review.googlesource.com/696436
Tested-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Shawn N <shawnn@chromium.org>
Reviewed-by: Duncan Laurie <dlaurie@google.com>
Commit-Queue: Scott Collyer <scollyer@chromium.org>
Trybot-Ready: Scott Collyer <scollyer@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2320261
Commit-Queue: Patryk Duda <pdk@semihalf.com>
Tested-by: Patryk Duda <pdk@semihalf.com>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'board/eve/board.h')
-rw-r--r-- | board/eve/board.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/board/eve/board.h b/board/eve/board.h index 3baa85d3b6..4e86fbad21 100644 --- a/board/eve/board.h +++ b/board/eve/board.h @@ -87,6 +87,7 @@ #define CONFIG_BATTERY_PRESENT_CUSTOM #define CONFIG_BATTERY_HW_PRESENT_CUSTOM #define CONFIG_BATTERY_SMART +#define CONFIG_BATTERY_VENDOR_PARAM /* Charger */ #define CONFIG_CHARGE_MANAGER |