Attention is currently required from: Tim Wawrzynczak. Felix Singer has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/60655 )
Change subject: ec/google/chromeec/acpi: Replace Divide(a,b,,c) with ASL 2.0 syntax ......................................................................
ec/google/chromeec/acpi: Replace Divide(a,b,,c) with ASL 2.0 syntax
Replace `Divide (a, b, , c)` with `c = a / b`.
Change-Id: I26117087c09109cfc480cbe01d3761a02a12c61b Signed-off-by: Felix Singer felixsinger@posteo.net --- M src/ec/google/chromeec/acpi/battery.asl M src/ec/google/chromeec/acpi/ec.asl 2 files changed, 6 insertions(+), 6 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/55/60655/1
diff --git a/src/ec/google/chromeec/acpi/battery.asl b/src/ec/google/chromeec/acpi/battery.asl index ce4462d..c28c78a 100644 --- a/src/ec/google/chromeec/acpi/battery.asl +++ b/src/ec/google/chromeec/acpi/battery.asl @@ -78,11 +78,11 @@ Store (Local0, Arg1[1])
// Design Capacity of Warning - Divide (Local0 * DWRN, 100, , Local2) + Local2 = Local0 * DWRN / 100 Store (Local2, Arg1[5])
// Design Capacity of Low - Divide (Local0 * DLOW, 100, , Local2) + Local2 = Local0 * DLOW / 100 Store (Local2, Arg1[6])
// Get battery info from mainboard @@ -118,11 +118,11 @@ Store (Local0, Arg1[2])
// Design Capacity of Warning - Divide (Local0 * DWRN, 100, , Local2) + Local2 = Local0 * DWRN / 100 Store (Local2, Arg1[6])
// Design Capacity of Low - Divide (Local0 * DLOW, 100, , Local2) + Local2 = Local0 * DLOW / 100 Store (Local2, Arg1[7])
// Cycle Count diff --git a/src/ec/google/chromeec/acpi/ec.asl b/src/ec/google/chromeec/acpi/ec.asl index 99478bc..49e7efc 100644 --- a/src/ec/google/chromeec/acpi/ec.asl +++ b/src/ec/google/chromeec/acpi/ec.asl @@ -423,7 +423,7 @@ Store (ToInteger (Arg0), ^PATI)
/* Temperature is passed in 1/10 Kelvin */ - Divide (ToInteger (Arg1), 10, , Local1) + Local1 = ToInteger (Arg1) / 10
/* Adjust by EC temperature offset */ ^PATT = Local1 - ^TOFS @@ -450,7 +450,7 @@ Store (ToInteger (Arg0), ^PATI)
/* Temperature is passed in 1/10 Kelvin */ - Divide (ToInteger (Arg1), 10, , Local1) + Local1 = ToInteger (Arg1) / 10
/* Adjust by EC temperature offset */ ^PATT = Local1 - ^TOFS