Attention is currently required from: Andrey Petrov, Patrick Rudolph. Felix Singer has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/60702 )
Change subject: soc/intel/apollolake/acpi: Replace LNotEqual(a,b) with ASL 2.0 syntax ......................................................................
soc/intel/apollolake/acpi: Replace LNotEqual(a,b) with ASL 2.0 syntax
Replace `LNotEqual(a, b)` with `a != b`.
Change-Id: Ife6ab0ded1dcf6e67535b0bf1d837ce86778de39 Signed-off-by: Felix Singer felixsinger@posteo.net --- M src/soc/intel/apollolake/acpi/pch_hda.asl M src/soc/intel/apollolake/acpi/pcie_port.asl M src/soc/intel/apollolake/acpi/scs.asl 3 files changed, 5 insertions(+), 5 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/02/60702/1
diff --git a/src/soc/intel/apollolake/acpi/pch_hda.asl b/src/soc/intel/apollolake/acpi/pch_hda.asl index 5739dff..fa87b5a 100644 --- a/src/soc/intel/apollolake/acpi/pch_hda.asl +++ b/src/soc/intel/apollolake/acpi/pch_hda.asl @@ -39,7 +39,7 @@ * NHLT Query only supported for revision 1 and * if NHLT address and length are set in NVS. */ - If (Arg1 == 1 && LNotEqual (NHLA, Zero) && LNotEqual (NHLL, Zero)) { + If (Arg1 == 1 && NHLA != 0 && NHLL != 0) { Return (Buffer (One) { 0x03 }) } Else { diff --git a/src/soc/intel/apollolake/acpi/pcie_port.asl b/src/soc/intel/apollolake/acpi/pcie_port.asl index 5b08b7b..19f5297 100644 --- a/src/soc/intel/apollolake/acpi/pcie_port.asl +++ b/src/soc/intel/apollolake/acpi/pcie_port.asl @@ -49,7 +49,7 @@
Method (_ON, 0, Serialized) { - If (PDST == 1 && LNotEqual (\PRT0, 0)) { + If (PDST == 1 && \PRT0 != 0) { /* Enter this condition if device * is connected */ @@ -83,7 +83,7 @@ Method (_OFF, 0, Serialized) { /* Set L23_Rdy Entry Request (L23ER) */ - If (PDST == 1 && LNotEqual (\PRT0, 0)) { + If (PDST == 1 && \PRT0 != 0) { /* enter this condition if device * is connected */ diff --git a/src/soc/intel/apollolake/acpi/scs.asl b/src/soc/intel/apollolake/acpi/scs.asl index e8263a5..d57af21 100644 --- a/src/soc/intel/apollolake/acpi/scs.asl +++ b/src/soc/intel/apollolake/acpi/scs.asl @@ -118,7 +118,7 @@ Method (_INI, 0) { /* Check SDCard CD port is valid */ - If (LNotEqual (\SCDP, 0) && LNotEqual (\SCDO, 0)) + If (\SCDP != 0 && \SCDO != 0) { /* Store DW0 address of SD_CD */ Store (GDW0 (\SCDP, \SCDO), SCD0) @@ -133,7 +133,7 @@ Method (_PS0, 0, NotSerialized) { /* Check SDCard CD port is valid */ - If (LNotEqual (\SCDP, 0) && LNotEqual (\SCDO, 0)) + If (\SCDP != 0 && \SCDO != 0) { /* Store DW0 into local0 to get rxstate of GPIO */ Store (_SB.GPC0 (SCD0), Local0)