soc/intel/cannonlake/acpi: Replace Add(a,b) with ASL 2.0 syntax

Replace `Add (a, b)` with `a + b`.

Change-Id: I90dc0ecb1e3f16874a72cdf01afb097d4e7b6076
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60503
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Felix Singer
2021-12-30 02:43:34 +01:00
parent 4fd000193b
commit d190cdd25e
3 changed files with 3 additions and 4 deletions

View File

@@ -92,7 +92,7 @@ Method (GADD, 1, NotSerialized)
}
Store (PCRB (Local0), Local2)
Local2 += PAD_CFG_BASE
Return (Add (Local2, Multiply (Local1, 16)))
Return (Local2 + Multiply (Local1, 16))
}
/*

View File

@@ -92,5 +92,5 @@ Method (GADD, 1, NotSerialized)
}
Store (PCRB (Local0), Local2)
Local2 += PAD_CFG_BASE
Return (Add (Local2, Multiply (Local1, 16)))
Return (Local2 + Multiply (Local1, 16))
}

View File

@@ -19,8 +19,7 @@ Method (UPWE, 3, Serialized)
Local0 = Arg1 + ((Arg0 - 1) * 0x10)
/* Map ((XMEM << 16) + Local0 in PSCR */
OperationRegion (PSCR, SystemMemory,
Add (ShiftLeft (Arg2, 16), Local0), 0x10)
OperationRegion (PSCR, SystemMemory, ShiftLeft (Arg2, 16) + Local0, 0x10)
Field (PSCR, DWordAcc, NoLock, Preserve)
{
PSCT, 32,