Felix Singer has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/60654 )
Change subject: ec/quanta/it8518/acpi: Replace Divide(a,b,,c) with ASL 2.0 syntax ......................................................................
ec/quanta/it8518/acpi: Replace Divide(a,b,,c) with ASL 2.0 syntax
Replace `Divide (a, b, , c)` with `c = a / b`.
Change-Id: I9b8262396755197dfbe044e3dc6a6a75c903f093 Signed-off-by: Felix Singer felixsinger@posteo.net --- M src/ec/quanta/it8518/acpi/battery.asl 1 file changed, 3 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/54/60654/1
diff --git a/src/ec/quanta/it8518/acpi/battery.asl b/src/ec/quanta/it8518/acpi/battery.asl index 316a342..48c8e35 100644 --- a/src/ec/quanta/it8518/acpi/battery.asl +++ b/src/ec/quanta/it8518/acpi/battery.asl @@ -149,8 +149,8 @@ // Design capacity of High (5%) // Design capacity of Low (1%) // - Divide (Local0, 20, , PBIF[5]) - Divide (Local0, 100, , PBIF[6]) + PBIF[5] = Local0 / 20 + PBIF[6] = Local0 / 100
// // Design voltage @@ -287,7 +287,7 @@ If (Local6) { Local1 *= ECVO - Divide (Local1, 1000, , Local1) + Local1 /= 1000 } Store (Local1, PBST[1])