Felix Singer has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/60454 )
Change subject: mb/51nb/x210/acpi: Use ACPI 2.0 syntax for accessing arrays ......................................................................
mb/51nb/x210/acpi: Use ACPI 2.0 syntax for accessing arrays
Replace Index(FOO, 1337) with FOO[1337].
Change-Id: I5692d1be5a94d259bbed987a43ec17ad1c1f915c Signed-off-by: Felix Singer felixsinger@posteo.net --- M src/mainboard/51nb/x210/acpi/battery.asl 1 file changed, 9 insertions(+), 9 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/54/60454/1
diff --git a/src/mainboard/51nb/x210/acpi/battery.asl b/src/mainboard/51nb/x210/acpi/battery.asl index f9022a4..bf5c9b0 100644 --- a/src/mainboard/51nb/x210/acpi/battery.asl +++ b/src/mainboard/51nb/x210/acpi/battery.asl @@ -37,19 +37,19 @@ 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 @@ * 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) }