From 26c76725918e791f02fda41eda72d9b8426b2f5f Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Sun, 11 Dec 2022 21:15:05 +0100 Subject: [PATCH] soc/intel/baytrail/acpi: Replace LEqual(a,b) with ASL 2.0 syntax Replace `LEqual (a, b)` with `a == b`. Change-Id: I9d50ddcb4427774681aedba945079f5d04401f07 Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/70589 Reviewed-by: Eric Lai Tested-by: build bot (Jenkins) --- src/soc/intel/baytrail/acpi/dptf/charger.asl | 4 +-- src/soc/intel/baytrail/acpi/dptf/cpu.asl | 2 +- src/soc/intel/baytrail/acpi/dptf/dptf.asl | 4 +-- src/soc/intel/baytrail/acpi/dptf/thermal.asl | 12 ++++----- src/soc/intel/baytrail/acpi/lpe.asl | 2 +- src/soc/intel/baytrail/acpi/lpss.asl | 28 ++++++++++---------- src/soc/intel/baytrail/acpi/scc.asl | 6 ++--- src/soc/intel/baytrail/acpi/southcluster.asl | 4 +-- 8 files changed, 31 insertions(+), 31 deletions(-) diff --git a/src/soc/intel/baytrail/acpi/dptf/charger.asl b/src/soc/intel/baytrail/acpi/dptf/charger.asl index 4169b94f69..e7ede39a63 100644 --- a/src/soc/intel/baytrail/acpi/dptf/charger.asl +++ b/src/soc/intel/baytrail/acpi/dptf/charger.asl @@ -9,7 +9,7 @@ Device (TCHG) Method (_STA) { - If (LEqual (\DPTE, One)) { + If (\DPTE == One) { Return (0xF) } Else { Return (0x0) @@ -30,7 +30,7 @@ Device (TCHG) Local0-- /* Check if charging is disabled (AC removed) */ - If (LEqual (\PWRS, Zero)) { + If (\PWRS == Zero) { /* Return last power state */ Return (Local0) } Else { diff --git a/src/soc/intel/baytrail/acpi/dptf/cpu.asl b/src/soc/intel/baytrail/acpi/dptf/cpu.asl index 8e43f6736f..cca1423356 100644 --- a/src/soc/intel/baytrail/acpi/dptf/cpu.asl +++ b/src/soc/intel/baytrail/acpi/dptf/cpu.asl @@ -13,7 +13,7 @@ Device (TCPU) Method (_STA) { - If (LEqual (\DPTE, One)) { + If (\DPTE == One) { Return (0xF) } Else { Return (0x0) diff --git a/src/soc/intel/baytrail/acpi/dptf/dptf.asl b/src/soc/intel/baytrail/acpi/dptf/dptf.asl index 66bfa45705..fd7fc51456 100644 --- a/src/soc/intel/baytrail/acpi/dptf/dptf.asl +++ b/src/soc/intel/baytrail/acpi/dptf/dptf.asl @@ -19,7 +19,7 @@ Device (DPTF) Method (_STA) { - If (LEqual (\DPTE, One)) { + If (\DPTE == One) { Return (0xF) } Else { Return (0x0) @@ -36,7 +36,7 @@ Device (DPTF) Method (_OSC, 4, Serialized) { /* Check for Passive Policy UUID */ - If (LEqual (DeRefOf (Index (IDSP, 0)), Arg0)) { + If (DeRefOf (Index (IDSP, 0)) == Arg0) { /* Initialize Thermal Devices */ ^TINI () diff --git a/src/soc/intel/baytrail/acpi/dptf/thermal.asl b/src/soc/intel/baytrail/acpi/dptf/thermal.asl index 816c169cbe..93d79284c2 100644 --- a/src/soc/intel/baytrail/acpi/dptf/thermal.asl +++ b/src/soc/intel/baytrail/acpi/dptf/thermal.asl @@ -9,17 +9,17 @@ Method (TEVT, 1, NotSerialized) Store (ToInteger (Arg0), Local0) #ifdef DPTF_TSR0_SENSOR_ID - If (LEqual (Local0, DPTF_TSR0_SENSOR_ID)) { + If (Local0 == DPTF_TSR0_SENSOR_ID) { Notify (^TSR0, 0x90) } #endif #ifdef DPTF_TSR1_SENSOR_ID - If (LEqual (Local0, DPTF_TSR1_SENSOR_ID)) { + If (Local0 == DPTF_TSR1_SENSOR_ID) { Notify (^TSR1, 0x90) } #endif #ifdef DPTF_TSR2_SENSOR_ID - If (LEqual (Local0, DPTF_TSR2_SENSOR_ID)) { + If (Local0 == DPTF_TSR2_SENSOR_ID) { Notify (^TSR2, 0x90) } #endif @@ -52,7 +52,7 @@ Device (TSR0) Method (_STA) { - If (LEqual (\DPTE, One)) { + If (\DPTE == One) { Return (0xF) } Else { Return (0x0) @@ -108,7 +108,7 @@ Device (TSR1) Method (_STA) { - If (LEqual (\DPTE, One)) { + If (\DPTE == One) { Return (0xF) } Else { Return (0x0) @@ -164,7 +164,7 @@ Device (TSR2) Method (_STA) { - If (LEqual (\DPTE, One)) { + If (\DPTE == One) { Return (0xF) } Else { Return (0x0) diff --git a/src/soc/intel/baytrail/acpi/lpe.asl b/src/soc/intel/baytrail/acpi/lpe.asl index a0a08b8a23..a726fcd33a 100644 --- a/src/soc/intel/baytrail/acpi/lpe.asl +++ b/src/soc/intel/baytrail/acpi/lpe.asl @@ -64,7 +64,7 @@ Device (LPEA) Method (_STA) { - If (LEqual (\LPEN, 1)) { + If (\LPEN == 1) { Return (0xF) } Else { Return (0x0) diff --git a/src/soc/intel/baytrail/acpi/lpss.asl b/src/soc/intel/baytrail/acpi/lpss.asl index 6ba615d438..20feabf959 100644 --- a/src/soc/intel/baytrail/acpi/lpss.asl +++ b/src/soc/intel/baytrail/acpi/lpss.asl @@ -24,7 +24,7 @@ Device (SDM1) Method (_STA) { - If (LEqual (\S0EN, 1)) { + If (\S0EN == 1) { Return (0xF) } Else { Return (0x0) @@ -56,7 +56,7 @@ Device (SDM2) Method (_STA) { - If (LEqual (\S8EN, 1)) { + If (\S8EN == 1) { Return (0xF) } Else { Return (0x0) @@ -96,7 +96,7 @@ Device (I2C1) Method (_STA) { - If (LEqual (\S1EN, 1)) { + If (\S1EN == 1) { Return (0xF) } Else { Return (0x0) @@ -155,7 +155,7 @@ Device (I2C2) Method (_STA) { - If (LEqual (\S2EN, 1)) { + If (\S2EN == 1) { Return (0xF) } Else { Return (0x0) @@ -214,7 +214,7 @@ Device (I2C3) Method (_STA) { - If (LEqual (\S3EN, 1)) { + If (\S3EN == 1) { Return (0xF) } Else { Return (0x0) @@ -273,7 +273,7 @@ Device (I2C4) Method (_STA) { - If (LEqual (\S4EN, 1)) { + If (\S4EN == 1) { Return (0xF) } Else { Return (0x0) @@ -332,7 +332,7 @@ Device (I2C5) Method (_STA) { - If (LEqual (\S5EN, 1)) { + If (\S5EN == 1) { Return (0xF) } Else { Return (0x0) @@ -391,7 +391,7 @@ Device (I2C6) Method (_STA) { - If (LEqual (\S6EN, 1)) { + If (\S6EN == 1) { Return (0xF) } Else { Return (0x0) @@ -450,7 +450,7 @@ Device (I2C7) Method (_STA) { - If (LEqual (\S7EN, 1)) { + If (\S7EN == 1) { Return (0xF) } Else { Return (0x0) @@ -503,7 +503,7 @@ Device (SPI1) Method (_STA) { - If (LEqual (\S9EN, 1)) { + If (\S9EN == 1) { Return (0xF) } Else { Return (0x0) @@ -550,7 +550,7 @@ Device (PWM1) Method (_STA) { - If (LEqual (\SAEN, 1)) { + If (\SAEN == 1) { Return (0xF) } Else { Return (0x0) @@ -578,7 +578,7 @@ Device (PWM2) Method (_STA) { - If (LEqual (\SBEN, 1)) { + If (\SBEN == 1) { Return (0xF) } Else { Return (0x0) @@ -612,7 +612,7 @@ Device (UAR1) Method (_STA) { - If (LEqual (\SCEN, 1)) { + If (\SCEN == 1) { Return (0xF) } Else { Return (0x0) @@ -665,7 +665,7 @@ Device (UAR2) Method (_STA) { - If (LEqual (\SDEN, 1)) { + If (\SDEN == 1) { Return (0xF) } Else { Return (0x0) diff --git a/src/soc/intel/baytrail/acpi/scc.asl b/src/soc/intel/baytrail/acpi/scc.asl index cf0debdac2..3113e2f76d 100644 --- a/src/soc/intel/baytrail/acpi/scc.asl +++ b/src/soc/intel/baytrail/acpi/scc.asl @@ -25,7 +25,7 @@ Device (EMMC) Method (_STA) { - If (LEqual (\C0EN, 1)) { + If (\C0EN == 1) { Return (0xF) } Else { Return (0x0) @@ -88,7 +88,7 @@ Device (SDIO) Method (_STA) { - If (LEqual (\C1EN, 1)) { + If (\C1EN == 1) { Return (0xF) } Else { Return (0x0) @@ -140,7 +140,7 @@ Device (SDCD) Method (_STA) { - If (LEqual (\C2EN, 1)) { + If (\C2EN == 1) { Return (0xF) } Else { Return (0x0) diff --git a/src/soc/intel/baytrail/acpi/southcluster.asl b/src/soc/intel/baytrail/acpi/southcluster.asl index 49d53f8f68..7da4db0f0c 100644 --- a/src/soc/intel/baytrail/acpi/southcluster.asl +++ b/src/soc/intel/baytrail/acpi/southcluster.asl @@ -155,7 +155,7 @@ Method (_CRS, 0, Serialized) CreateDWordField (MCRS, ^LMEM._MIN, LMIN) CreateDWordField (MCRS, ^LMEM._MAX, LMAX) CreateDWordField (MCRS, ^LMEM._LEN, LLEN) - If (LAnd (LNotEqual (LPFW, Zero), LEqual (LPEN, One))) + If (LAnd (LNotEqual (LPFW, Zero), LPEN == One)) { Store (LPFW, LMIN) Store (0x00100000, LLEN) @@ -208,7 +208,7 @@ Device (PDRC) Method (_OSC, 4) { /* Check for proper GUID */ - If (LEqual (Arg0, ToUUID("33DB4D5B-1FF7-401C-9657-7441C03DD766"))) + If (Arg0 == ToUUID("33DB4D5B-1FF7-401C-9657-7441C03DD766")) { /* Let OS control everything */ Return (Arg3)