soc/intel/baytrail/acpi: Replace Index(a, b) with ASL 2.0 syntax

Change-Id: Iab611cda1083da4378a6e509d11ea26bdbb45edd
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71503
Reviewed-by: Felix Singer <felixsinger@posteo.net>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Elyes Haouas 2022-12-25 06:29:39 +01:00 committed by Felix Singer
parent ffc0d2455c
commit f451bfb1a5
3 changed files with 4 additions and 5 deletions

View File

@ -45,8 +45,7 @@ Device (TCHG)
Method (SPPC, 1) Method (SPPC, 1)
{ {
/* Retrieve Control (index 4) for specified PPSS level */ /* Retrieve Control (index 4) for specified PPSS level */
Local0 = DeRefOf (Index (DeRefOf (Index Local0 = DerefOf (DerefOf (\_SB.CHPS[ToInteger (Arg0)])[4])
(\_SB.CHPS, ToInteger (Arg0))), 4))
/* Pass Control value to EC to limit charging */ /* Pass Control value to EC to limit charging */
\_SB.PCI0.LPCB.EC0.CHGS (Local0) \_SB.PCI0.LPCB.EC0.CHGS (Local0)

View File

@ -36,7 +36,7 @@ Device (DPTF)
Method (_OSC, 4, Serialized) Method (_OSC, 4, Serialized)
{ {
/* Check for Passive Policy UUID */ /* Check for Passive Policy UUID */
If (DeRefOf (Index (IDSP, 0)) == Arg0) { If (DeRefOf (IDSP[0]) == Arg0) {
/* Initialize Thermal Devices */ /* Initialize Thermal Devices */
^TINI () ^TINI ()

View File

@ -17,11 +17,11 @@ Device (XHCI)
}) })
// REV: Revision 0x02 for ACPI 5.0 // REV: Revision 0x02 for ACPI 5.0
CreateField (DerefOf (Index (PCKG, Zero)), Zero, 0x07, REV) CreateField (DerefOf (PCKG[0]), Zero, 0x07, REV)
REV = 0x02 REV = 0x02
// VISI: Port visibility to user per port // VISI: Port visibility to user per port
CreateField (DerefOf (Index (PCKG, Zero)), 0x40, One, VISI) CreateField (DerefOf (PCKG[0]), 0x40, One, VISI)
VISI = Arg0 VISI = Arg0
Return (PCKG) Return (PCKG)
} }