ec/starlabs/merlin: Report the battery cycle count to ACPI
Change-Id: Iccb60d3530227fb71a3ce5a3ab1421627cc86611 Signed-off-by: Sean Rhodes <sean@starlabs.systems> Reviewed-on: https://review.coreboot.org/c/coreboot/+/81405 Reviewed-by: Matt DeVillier <matt.devillier@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
95e726e5b7
commit
d4d321ff89
@ -86,6 +86,7 @@ Device (BAT0)
|
|||||||
XBIF [5] = B1DV
|
XBIF [5] = B1DV
|
||||||
XBIF [6] = B1DC / 5 // 20%
|
XBIF [6] = B1DC / 5 // 20%
|
||||||
XBIF [7] = B1DC / 20 // 5%
|
XBIF [7] = B1DC / 20 // 5%
|
||||||
|
XBIF [8] = B1CC
|
||||||
XBIF [14] = B1DC / 500 // 0.2%
|
XBIF [14] = B1DC / 500 // 0.2%
|
||||||
XBIF [15] = B1DC / 500 // 0.2%
|
XBIF [15] = B1DC / 500 // 0.2%
|
||||||
XBIF [17] = B1SN
|
XBIF [17] = B1SN
|
||||||
|
@ -94,6 +94,7 @@ Field (ECF2, ByteAcc, Lock, Preserve)
|
|||||||
B1RC, 16, // Battery Remaining Capacity
|
B1RC, 16, // Battery Remaining Capacity
|
||||||
B1PV, 16, // Battery Present Voltage
|
B1PV, 16, // Battery Present Voltage
|
||||||
BPRP, 16, // Battery Remaining percentage
|
BPRP, 16, // Battery Remaining percentage
|
||||||
|
B1CC, 16, // Battery Cycle Count
|
||||||
|
|
||||||
Offset(0x9d),
|
Offset(0x9d),
|
||||||
OPWE, 8, // OPM write to EC flag for UCSI
|
OPWE, 8, // OPM write to EC flag for UCSI
|
||||||
|
@ -94,6 +94,7 @@ Field (ECF2, ByteAcc, Lock, Preserve)
|
|||||||
B1RC, 16, // Battery Remaining Capacity
|
B1RC, 16, // Battery Remaining Capacity
|
||||||
B1PV, 16, // Battery Present Voltage
|
B1PV, 16, // Battery Present Voltage
|
||||||
BPRP, 16, // Battery Remaining percentage
|
BPRP, 16, // Battery Remaining percentage
|
||||||
|
B1CC, 16, // Battery Cycle Count
|
||||||
|
|
||||||
Offset(0x9d),
|
Offset(0x9d),
|
||||||
OPWE, 8, // OPM write to EC flag for UCSI
|
OPWE, 8, // OPM write to EC flag for UCSI
|
||||||
|
@ -66,6 +66,7 @@ Field (ECF2, ByteAcc, Lock, Preserve)
|
|||||||
B1RC, 16, // Battery Remaining Capacity
|
B1RC, 16, // Battery Remaining Capacity
|
||||||
B1PV, 16, // Battery Present Voltage
|
B1PV, 16, // Battery Present Voltage
|
||||||
BPRP, 16, // Battery Remaining percentage
|
BPRP, 16, // Battery Remaining percentage
|
||||||
|
B1CC, 16, // Battery Cycle Count
|
||||||
|
|
||||||
Offset(0x9d),
|
Offset(0x9d),
|
||||||
OPWE, 8, // OPM write to EC flag for UCSI
|
OPWE, 8, // OPM write to EC flag for UCSI
|
||||||
|
@ -83,6 +83,7 @@ Field (ECF2, ByteAcc, Lock, Preserve)
|
|||||||
B1RC, 16, // Battery Remaining Capacity
|
B1RC, 16, // Battery Remaining Capacity
|
||||||
B1PV, 16, // Battery Present Voltage
|
B1PV, 16, // Battery Present Voltage
|
||||||
BPRP, 16, // Battery Remaining percentage
|
BPRP, 16, // Battery Remaining percentage
|
||||||
|
B1CC, 16, // Battery Cycle Count
|
||||||
|
|
||||||
Offset(0x9d),
|
Offset(0x9d),
|
||||||
OPWE, 8, // OPM write to EC flag for UCSI
|
OPWE, 8, // OPM write to EC flag for UCSI
|
||||||
|
@ -49,4 +49,5 @@ Field (ECF2, ByteAcc, Lock, Preserve)
|
|||||||
B1RC, 16, // Battery Remaining Capacity
|
B1RC, 16, // Battery Remaining Capacity
|
||||||
B1PV, 16, // Battery Present Voltage
|
B1PV, 16, // Battery Present Voltage
|
||||||
BPRP, 16, // Battery Remaining percentage
|
BPRP, 16, // Battery Remaining percentage
|
||||||
|
B1CC, 16, // Battery Cycle Count
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user