coreboot/src/ec
Matt DeVillier e464a02635 ec/google/chromeec: Add Kconfig to enable battery full workaround
Commit 55a972236e ("chromeec: Disable battery remaining capacity
workaround") disabled the workaround for all ChromeEC devices, since
newer EC firmware applies compensation via battery_compensate_params.
Older boards use EC branches that lack this logic; without it, users can
see 93–100% charge–discharge cycling and stale full-capacity reporting.

Add a Kconfig to configure the workaround, and select it for older
boards whose EC firmware lacks battery_compensate_params logic.
EC firmware branches were inspected to determine which ones lack this
logic.


TEST=build/boot google/lulu, verify battery full indication works
     correctly with the Kconfig selected.

Change-Id: I096e0cf402e07f846b961319e01fb8f2c2dde7fc
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/90960
Reviewed-by: Caveh Jalali <caveh@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
2026-01-29 14:30:04 +00:00
..
51nb/npce985la0dx
acpi ec/acpi/ec.c: Promote timeout messages to errors 2025-01-22 20:20:44 +00:00
apple/acpi
clevo/it5570e Remove <swab.h> and swabXX() functions 2025-12-12 07:09:45 +00:00
compal/ene932
dasharo/ec ec/dasharo/ec: Add DTT power and battery participants 2025-06-06 13:13:59 +00:00
dell/mec5035 ec/dell/mec5035: Route power button event to host 2025-11-19 13:59:08 +00:00
google ec/google/chromeec: Add Kconfig to enable battery full workaround 2026-01-29 14:30:04 +00:00
hp/kbc1126
intel ec/intel: read board ID one time from EC per stage 2025-04-29 18:53:04 +00:00
kontron
lenovo ec/lenovo/h8: Properly advertised used I/O 2026-01-25 19:23:22 +00:00
purism
quanta
roda/it8518
smsc/mec1308
starlabs/merlin Revert "ec/starlabs/merlin: Add retry to get_ec_version()" 2026-01-29 09:00:38 +00:00
system76/ec ec/system76/ec: Add config for 2nd fan without GPU 2025-05-14 18:08:44 +00:00
ec.h