From 3a8f0875c0a64be8586780a1d9f6e304b14c7456 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Thu, 30 Dec 2021 01:27:07 +0100 Subject: [PATCH] soc/intel/cannonlake/acpi: Replace Add(a,b,c) with ASL 2.0 syntax Replace `Add (a, b, c)` with `c = a + b`. Change-Id: Ibc5aeb5e8d85556d7564033ec92deb5b2dae093d Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/60486 Tested-by: build bot (Jenkins) Reviewed-by: HAOUAS Elyes --- src/soc/intel/cannonlake/acpi/gpio.asl | 2 +- src/soc/intel/cannonlake/acpi/gpio_cnp_h.asl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/soc/intel/cannonlake/acpi/gpio.asl b/src/soc/intel/cannonlake/acpi/gpio.asl index a1bc375714..375a6a3068 100644 --- a/src/soc/intel/cannonlake/acpi/gpio.asl +++ b/src/soc/intel/cannonlake/acpi/gpio.asl @@ -91,7 +91,7 @@ Method (GADD, 1, NotSerialized) Local1 = Arg0 - GPP_C0 } Store (PCRB (Local0), Local2) - Add (Local2, PAD_CFG_BASE, Local2) + Local2 += PAD_CFG_BASE Return (Add (Local2, Multiply (Local1, 16))) } diff --git a/src/soc/intel/cannonlake/acpi/gpio_cnp_h.asl b/src/soc/intel/cannonlake/acpi/gpio_cnp_h.asl index 5007d96c22..db4b53d511 100644 --- a/src/soc/intel/cannonlake/acpi/gpio_cnp_h.asl +++ b/src/soc/intel/cannonlake/acpi/gpio_cnp_h.asl @@ -91,6 +91,6 @@ Method (GADD, 1, NotSerialized) Local1 = Arg0 - GPP_I0 } Store (PCRB (Local0), Local2) - Add (Local2, PAD_CFG_BASE, Local2) + Local2 += PAD_CFG_BASE Return (Add (Local2, Multiply (Local1, 16))) }