aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2021-12-30 02:06:36 +0100
committerFelix Singer <felixsinger@posteo.net>2021-12-31 08:57:38 +0000
commitf94ec24eb9b22dc35c51f3bc3cf1a8614297a33c (patch)
tree1b472e045d0e1fe9507e9dd28822dff6b4644b81
parent4e099552d8e7ec75c09f6f40ab3c07060c616471 (diff)
soc/intel/apollolake/acpi: Replace Subtract(a,b) with ASL 2.0 syntax
Replace `Subtract (a, b)` with `a - b`. Change-Id: I3b0ee96b5a1e9bf242efc14a24f745fd8ba0cd97 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60496 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
-rw-r--r--src/soc/intel/apollolake/acpi/northbridge.asl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/intel/apollolake/acpi/northbridge.asl b/src/soc/intel/apollolake/acpi/northbridge.asl
index 1b59097772..4f2acbb8bd 100644
--- a/src/soc/intel/apollolake/acpi/northbridge.asl
+++ b/src/soc/intel/apollolake/acpi/northbridge.asl
@@ -83,7 +83,7 @@ Method (_CRS, 0, Serialized)
And(\_SB.PCI0.MCHC.MCNF, 0xF0000000, PMAX)
/* Calculate PCI MMIO Length */
- PLEN = Subtract(PMAX, PMIN) + 1
+ PLEN = PMAX - PMIN + 1
/* Find GFX resource area in GCRS */
CreateDwordField(MCRS, STOM._MIN, GMIN)
@@ -96,7 +96,7 @@ Method (_CRS, 0, Serialized)
/* Read TOLUD */
And(\_SB.PCI0.MCHC.TLUD, 0xFFF00000, GMAX)
Decrement(GMAX)
- GLEN = Subtract(GMAX, GMIN) + 1
+ GLEN = GMAX - GMIN + 1
/* Patch PM02 range based on Memory Size */
If (LEqual (A4GS, 0)) {