From ffc0d2455cc855b315db23f4641ebaf4cc538ea7 Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Sun, 25 Dec 2022 06:01:09 +0100 Subject: soc/intel/braswell/acpi: Replace Index(a, b) with ASL 2.0 syntax Change-Id: I7da6ee3c5bce6b32874e59ad46290b86db8f97c6 Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/71502 Reviewed-by: Eric Lai Reviewed-by: Felix Singer Tested-by: build bot (Jenkins) --- src/soc/intel/braswell/acpi/dptf/charger.asl | 3 +-- src/soc/intel/braswell/acpi/dptf/dptf.asl | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/soc/intel/braswell/acpi/dptf/charger.asl b/src/soc/intel/braswell/acpi/dptf/charger.asl index 61672ba7ed..68245c9f72 100644 --- a/src/soc/intel/braswell/acpi/dptf/charger.asl +++ b/src/soc/intel/braswell/acpi/dptf/charger.asl @@ -45,8 +45,7 @@ Device (TCHG) Method (SPPC, 1) { /* Retrieve Control (index 4) for specified PPSS level */ - Local0 = DeRefOf (Index (DeRefOf (Index - (\_SB.CHPS, ToInteger (Arg0))), 4)) + Local0 = DerefOf (DerefOf (\_SB.CHPS[ToInteger (Arg0)])[4]) /* Pass Control value to EC to limit charging */ \_SB.PCI0.LPCB.EC0.CHGS (Local0) diff --git a/src/soc/intel/braswell/acpi/dptf/dptf.asl b/src/soc/intel/braswell/acpi/dptf/dptf.asl index 443447cd22..c4d9c61c13 100644 --- a/src/soc/intel/braswell/acpi/dptf/dptf.asl +++ b/src/soc/intel/braswell/acpi/dptf/dptf.asl @@ -36,7 +36,7 @@ Device (DPTF) Method (_OSC, 4, Serialized) { /* Check for Passive Policy UUID */ - If (DeRefOf (Index (IDSP, 0)) == Arg0) { + If (DeRefOf (IDSP[0]) == Arg0) { /* Initialize Thermal Devices */ ^TINI () -- cgit v1.2.3