ec/starlabs/merlin/*: Fix the size of the battery soc

The battery remaining percentage is a uint16_t, so correct this in
the EC memory. This change is non-function, as the EC is little
endian.

Change-Id: I56a0ae8199a95c9722e9bcb4c0739f4ef1d6ab05
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/81403
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Sean Rhodes 2024-03-18 10:15:21 +00:00 committed by Felix Held
parent a273e1da86
commit d57e57eb22
5 changed files with 5 additions and 9 deletions

View File

@ -93,8 +93,7 @@ Field (ECF2, ByteAcc, Lock, Preserve)
B1PR, 16, // Battery Present Rate
B1RC, 16, // Battery Remaining Capacity
B1PV, 16, // Battery Present Voltage
BPRP, 8, // Battery Remaining percentage
BT1A, 8, // Bt1 ASOC
BPRP, 16, // Battery Remaining percentage
BT1T, 16, // Bt1 Temperature
BT1C, 8, // Bt1 Control

View File

@ -93,8 +93,7 @@ Field (ECF2, ByteAcc, Lock, Preserve)
B1PR, 16, // Battery Present Rate
B1RC, 16, // Battery Remaining Capacity
B1PV, 16, // Battery Present Voltage
BPRP, 8, // Battery Remaining percentage
BT1A, 8, // Bt1 ASOC
BPRP, 16, // Battery Remaining percentage
BT1T, 16, // Bt1 Temperature
BT1C, 8, // Bt1 Control

View File

@ -65,8 +65,7 @@ Field (ECF2, ByteAcc, Lock, Preserve)
B1PR, 16, // Battery Present Rate
B1RC, 16, // Battery Remaining Capacity
B1PV, 16, // Battery Present Voltage
BPRP, 8, // Battery Remaining percentage
BT1A, 8, // Bt1 ASOC
BPRP, 16, // Battery Remaining percentage
BT1T, 16, // Bt1 Temperature
BT1C, 8, // Bt1 Control

View File

@ -82,8 +82,7 @@ Field (ECF2, ByteAcc, Lock, Preserve)
B1PR, 16, // Battery Present Rate
B1RC, 16, // Battery Remaining Capacity
B1PV, 16, // Battery Present Voltage
BPRP, 8, // Battery Remaining percentage
BT1A, 8, // Bt1 ASOC
BPRP, 16, // Battery Remaining percentage
Offset(0x9d),
OPWE, 8, // OPM write to EC flag for UCSI

View File

@ -48,5 +48,5 @@ Field (ECF2, ByteAcc, Lock, Preserve)
B1PR, 16, // Battery Present Rate
B1RC, 16, // Battery Remaining Capacity
B1PV, 16, // Battery Present Voltage
BPRP, 8, // Battery Remaining percentage
BPRP, 16, // Battery Remaining percentage
}