diff options
author | Sean Rhodes <sean@starlabs.systems> | 2024-03-18 15:08:51 +0000 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2024-06-07 18:54:13 +0000 |
commit | cb9591cef0772062561e1281448f5c6bd0910e24 (patch) | |
tree | 7a685f4765e9bd979b5dce511676ab84fbfe999d /src/mainboard/emulation/qemu-riscv/Makefile.mk | |
parent | 7c4cc60a6c41dbe6b9991eb54e4a01d4594a9795 (diff) |
ec/starlabs/merlin/battery: Calculate unknown values
If the EC doesn't know a value, it will report it as 0xffff. In these
cases, calculate a value to used based on others. For example, if the
EC doesn't know the last full charge capacity, report the design
capacity to the OS.
Change-Id: I310555ff913c2e492bbaec4d77281ac32c0de7a3
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/81408
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/emulation/qemu-riscv/Makefile.mk')
0 files changed, 0 insertions, 0 deletions