summaryrefslogtreecommitdiff
path: root/src/soc/nvidia/tegra210/dsi.c
diff options
context:
space:
mode:
authorSean Rhodes <sean@starlabs.systems>2022-03-02 08:55:22 +0000
committerFelix Held <felix-coreboot@felixheld.de>2022-03-03 14:08:02 +0000
commitaf4bac9e50ed7e5db76028c9efb914ca89fda6b0 (patch)
treef02edc8eca88867ce702db03ed52b03c96818d16 /src/soc/nvidia/tegra210/dsi.c
parent3b9077af71a8550e1a5682ac59276338c9d76a6f (diff)
ec/starlabs/merlin: Don't report a battery capacity higher than design capacity
If B1FC (Battery Full Capacity) is higher than B1DC (Battery Design Capacity), only report the design capacity. This handles cases where the battery calibration is incorrect, and the battery runs out before the OS thinks it's empty. Signed-off-by: Sean Rhodes <sean@starlabs.systems> Change-Id: Ib3e4769c809b69e0a237b5f043e6c41c12d53752 Reviewed-on: https://review.coreboot.org/c/coreboot/+/62514 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/soc/nvidia/tegra210/dsi.c')
0 files changed, 0 insertions, 0 deletions