Matt DeVillier has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/39142 )
Change subject: mb/51nb/x210: correct battery ACPI ......................................................................
mb/51nb/x210: correct battery ACPI
Derived from x210_test branch of HarryKipper's repo: https://github.com/harrykipper/coreboot
Change-Id: Ie097272443b18b16c3937034f874d3b5a6bdd62a Signed-off-by: Matt DeVillier matt.devillier@gmail.com --- M src/mainboard/51nb/x210/acpi/battery.asl 1 file changed, 4 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/42/39142/1
diff --git a/src/mainboard/51nb/x210/acpi/battery.asl b/src/mainboard/51nb/x210/acpi/battery.asl index 9a3a361..6689c83 100644 --- a/src/mainboard/51nb/x210/acpi/battery.asl +++ b/src/mainboard/51nb/x210/acpi/battery.asl @@ -50,16 +50,16 @@ Method (_BIF, 0, Serialized) { /* Design Capacity */ - Store (DGCP, Index (PBIF, 1)) + Store (DGCP * 10000 / DGVO, Index (PBIF, 1))
/* Last Full Charge Capacity */ - Store (FLCP, Index (PBIF, 2)) + Store (FLCP * 10000 / DGVO, Index (PBIF, 2))
/* Design Voltage */ Store (DGVO, Index (PBIF, 4))
/* Design Capacity of Warning */ - Store (BDW, Index (PBIF, 5)) + Store (BDW * 10000 / DGVO, Index (PBIF, 5))
/* Design Capacity of Low */ Store (BDL, Index (PBIF, 6)) @@ -93,7 +93,7 @@ /* * 2: BATTERY REMAINING CAPACITY */ - Store (BRC, Index (PBST, 2)) + Store (BRC * 10000 / DGVO, Index (PBST, 2))
/* * 3: BATTERY PRESENT VOLTAGE