summaryrefslogtreecommitdiff
path: root/src/ec/roda/it8518/acpi
diff options
context:
space:
mode:
authorFelix Singer <felix.singer@secunet.com>2021-07-26 19:09:18 +0200
committerNico Huber <nico.h@gmx.de>2021-07-28 13:46:22 +0000
commit48d064bf9bc7a02ee8a5a42721e094b525a5a98b (patch)
tree14888a6428d91668175b1302cbee741431a088cb /src/ec/roda/it8518/acpi
parent98a413257cc1f0a92f1c5a0d36639d96a58b8302 (diff)
ec/roda/it8518/acpi: Use decimal integers for accessing indexes
Change-Id: I7d4fb69a223e3b48a790e9144d2682619c18d513 Signed-off-by: Felix Singer <felix.singer@secunet.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/56603 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/ec/roda/it8518/acpi')
-rw-r--r--src/ec/roda/it8518/acpi/battery.asl18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ec/roda/it8518/acpi/battery.asl b/src/ec/roda/it8518/acpi/battery.asl
index 38b6ed3ab8..12295a201c 100644
--- a/src/ec/roda/it8518/acpi/battery.asl
+++ b/src/ec/roda/it8518/acpi/battery.asl
@@ -62,9 +62,9 @@ Device (BAT0)
{
Printf ("-----> BAT0: _BIF")
- Store (B0FC, Index (PBIF, 0x02))
- Store (Divide (Multiply (B0FC, 6), 100), Index (PBIF, 0x05))
- Store (Divide (Multiply (B0FC, 3), 100), Index (PBIF, 0x06))
+ Store (B0FC, Index (PBIF, 2))
+ Store (Divide (Multiply (B0FC, 6), 100), Index (PBIF, 5))
+ Store (Divide (Multiply (B0FC, 3), 100), Index (PBIF, 6))
Printf ("<----- BAT0: _BIF")
@@ -81,16 +81,16 @@ Device (BAT0)
{
If (LEqual (PWRS, 1))
{
- Store (0x00, Index (PBST, 0x00))
+ Store (0x00, Index (PBST, 0))
}
Else
{
- Store (0x01, Index (PBST, 0x00))
+ Store (0x01, Index (PBST, 0))
}
}
Else
{
- Store (0x02, Index (PBST, 0x00))
+ Store (0x02, Index (PBST, 0))
}
Store (B0AC, Local1)
@@ -99,9 +99,9 @@ Device (BAT0)
Subtract (0x00010000, Local1, Local1)
}
- Store (Local1, Index (PBST, 0x01))
- Store (B0RC, Index (PBST, 0x02))
- Store (B0VT, Index (PBST, 0x03))
+ Store (Local1, Index (PBST, 1))
+ Store (B0RC, Index (PBST, 2))
+ Store (B0VT, Index (PBST, 3))
Printf ("<----- BAT0: _BST")