summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2021-12-29 13:39:20 +0100
committerFelix Singer <felixsinger@posteo.net>2021-12-30 14:25:16 +0000
commit2bdffaa27215037af6cb137ff0d2f0a7f75232e7 (patch)
tree6dc737cd506f57cfeb50ae7eda38182ef6a082ee /src/mainboard
parentbb665ed6354b3f5431614eb542d55abe1cf2cb7c (diff)
downloadcoreboot-2bdffaa27215037af6cb137ff0d2f0a7f75232e7.tar.gz
mb/51nb/x210/acpi: Use ASL 2.0 syntax to access arrays
Replace Index(FOO, 1337) with FOO[1337]. Change-Id: I5692d1be5a94d259bbed987a43ec17ad1c1f915c Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60454 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/51nb/x210/acpi/battery.asl18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mainboard/51nb/x210/acpi/battery.asl b/src/mainboard/51nb/x210/acpi/battery.asl
index f9022a4c75..bf5c9b095b 100644
--- a/src/mainboard/51nb/x210/acpi/battery.asl
+++ b/src/mainboard/51nb/x210/acpi/battery.asl
@@ -37,19 +37,19 @@ Device (BAT)
Method (_BIF, 0, Serialized)
{
/* Design Capacity */
- Store (DGCP * 10000 / DGVO, Index (PBIF, 1))
+ Store (DGCP * 10000 / DGVO, PBIF[1])
/* Last Full Charge Capacity */
- Store (FLCP * 10000 / DGVO, Index (PBIF, 2))
+ Store (FLCP * 10000 / DGVO, PBIF[2])
/* Design Voltage */
- Store (DGVO, Index (PBIF, 4))
+ Store (DGVO, PBIF[4])
/* Design Capacity of Warning */
- Store (BDW * 10000 / DGVO, Index (PBIF, 5))
+ Store (BDW * 10000 / DGVO, PBIF[5])
/* Design Capacity of Low */
- Store (BDL, Index (PBIF, 6))
+ Store (BDL, PBIF[6])
Return (PBIF)
}
@@ -70,22 +70,22 @@ Device (BAT)
* bit 1 = charging
* bit 2 = critical level
*/
- Store (BSTS, Index (PBST, 0))
+ Store (BSTS, PBST[0])
/*
* 1: BATTERY PRESENT RATE
*/
- Store (BPR, Index (PBST, 1))
+ Store (BPR, PBST[1])
/*
* 2: BATTERY REMAINING CAPACITY
*/
- Store (BRC * 10000 / DGVO, Index (PBST, 2))
+ Store (BRC * 10000 / DGVO, PBST[2])
/*
* 3: BATTERY PRESENT VOLTAGE
*/
- Store (BPV, Index (PBST, 3))
+ Store (BPV, PBST[3])
Return (PBST)
}