diff options
author | Felix Singer <felixsinger@posteo.net> | 2021-12-29 23:29:18 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2021-12-30 23:54:40 +0000 |
commit | a6fe3f82a88101ce50b501db27f74fb21fcc458f (patch) | |
tree | 309e8b7cc56e10b3f6de14acc37f3c5ae0eebf3c /src/soc/intel/cannonlake/acpi | |
parent | 53b6c206e5c2255dccc0def948d67a0bea9956b3 (diff) |
soc/intel/cannonlake/acpi: Replace Subtract(a,b,c) with ASL 2.0 syntax
Replace `Subtract (a, b, c)` with `c = a - b`.
Change-Id: I764bf6c8b068c1b7471a28aa064f7a3a47d7811e
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60473
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Diffstat (limited to 'src/soc/intel/cannonlake/acpi')
-rw-r--r-- | src/soc/intel/cannonlake/acpi/gpio.asl | 10 | ||||
-rw-r--r-- | src/soc/intel/cannonlake/acpi/gpio_cnp_h.asl | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/soc/intel/cannonlake/acpi/gpio.asl b/src/soc/intel/cannonlake/acpi/gpio.asl index 6b15f809eb..a1bc375714 100644 --- a/src/soc/intel/cannonlake/acpi/gpio.asl +++ b/src/soc/intel/cannonlake/acpi/gpio.asl @@ -64,31 +64,31 @@ Method (GADD, 1, NotSerialized) If (LGreaterEqual (Arg0, GPP_A0) && LLessEqual (Arg0, SPI0_CLK_LOOPBK)) { Store (PID_GPIOCOM0, Local0) - Subtract (Arg0, GPP_A0, Local1) + Local1 = Arg0 - GPP_A0 } /* GPIO Community 1 */ If (LGreaterEqual (Arg0, GPP_D0) && LLessEqual (Arg0, vSD3_CD_B)) { Store (PID_GPIOCOM1, Local0) - Subtract (Arg0, GPP_D0, Local1) + Local1 = Arg0 - GPP_D0 } /* GPIO Community 2 */ If (LGreaterEqual (Arg0, GPD0) && LLessEqual (Arg0, DRAM_RESET_B)) { Store (PID_GPIOCOM2, Local0) - Subtract (Arg0, GPD0, Local1) + Local1 = Arg0 - GPD0 } /* GPIO Community 3 */ If (LGreaterEqual (Arg0, HDA_BCLK) && LLessEqual (Arg0, TRIGGER_OUT)) { Store (PID_GPIOCOM3, Local0) - Subtract (Arg0, HDA_BCLK, Local1) + Local1 = Arg0 - HDA_BCLK } /* GPIO Community 4*/ If (LGreaterEqual (Arg0, GPP_C0) && LLessEqual (Arg0, CL_RST_B)) { Store (PID_GPIOCOM4, Local0) - Subtract (Arg0, GPP_C0, Local1) + Local1 = Arg0 - GPP_C0 } Store (PCRB (Local0), Local2) Add (Local2, PAD_CFG_BASE, Local2) diff --git a/src/soc/intel/cannonlake/acpi/gpio_cnp_h.asl b/src/soc/intel/cannonlake/acpi/gpio_cnp_h.asl index db2b22cbe4..5007d96c22 100644 --- a/src/soc/intel/cannonlake/acpi/gpio_cnp_h.asl +++ b/src/soc/intel/cannonlake/acpi/gpio_cnp_h.asl @@ -70,25 +70,25 @@ Method (GADD, 1, NotSerialized) If (LGreaterEqual (Arg0, GPP_A0) && LLessEqual (Arg0, GSPI1_CLK_LOOPBK)) { Store (PID_GPIOCOM0, Local0) - Subtract (Arg0, GPP_A0, Local1) + Local1 = Arg0 - GPP_A0 } /* GPIO Community 1 */ If (LGreaterEqual (Arg0, GPP_C0) && LLessEqual (Arg0, vSSP2_RXD)) { Store (PID_GPIOCOM1, Local0) - Subtract (Arg0, GPP_C0, Local1) + Local1 = Arg0 - GPP_C0 } /* GPIO Community 3*/ If (LGreaterEqual (Arg0, GPP_K0) && LLessEqual (Arg0, SPI0_CLK_LOOPBK)) { Store (PID_GPIOCOM3, Local0) - Subtract (Arg0, GPP_K0, Local1) + Local1 = Arg0 - GPP_K0 } /* GPIO Community 4*/ If (LGreaterEqual (Arg0, HDACPU_SDI) && LLessEqual (Arg0, GPP_J11)) { Store (PID_GPIOCOM4, Local0) - Subtract (Arg0, GPP_I0, Local1) + Local1 = Arg0 - GPP_I0 } Store (PCRB (Local0), Local2) Add (Local2, PAD_CFG_BASE, Local2) |