summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2021-12-29 15:50:41 +0100
committerFelix Singer <felixsinger@posteo.net>2021-12-30 16:24:33 +0000
commit5e0fc511fd25890c59678ac2d9baeb455b3a9f53 (patch)
treeae29fbca3308b865dfeb717eb203884230e38f83 /src
parent2318677866eb62df0a7ef2dd29f8970598822beb (diff)
soc/intel/apollolake/acpi: Replace LAnd() with ASL 2.0 syntax
Replace `LAnd (a, b)` with `a && b`. Change-Id: I4bbbc4888fc134b3862bb956b2ee17a72f282584 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60466 Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/soc/intel/apollolake/acpi/pch_hda.asl4
-rw-r--r--src/soc/intel/apollolake/acpi/pcie_port.asl4
-rw-r--r--src/soc/intel/apollolake/acpi/scs.asl4
3 files changed, 5 insertions, 7 deletions
diff --git a/src/soc/intel/apollolake/acpi/pch_hda.asl b/src/soc/intel/apollolake/acpi/pch_hda.asl
index c3f862ef26..6c9a14a690 100644
--- a/src/soc/intel/apollolake/acpi/pch_hda.asl
+++ b/src/soc/intel/apollolake/acpi/pch_hda.asl
@@ -39,9 +39,7 @@ Device (HDAS)
* NHLT Query only supported for revision 1 and
* if NHLT address and length are set in NVS.
*/
- If (LAnd (LEqual (Arg1, One),
- LAnd (LNotEqual (NHLA, Zero),
- LNotEqual (NHLL, Zero)))) {
+ If (LEqual (Arg1, One) && LNotEqual (NHLA, Zero) && LNotEqual (NHLL, Zero)) {
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 f0f49f32b5..710051b828 100644
--- a/src/soc/intel/apollolake/acpi/pcie_port.asl
+++ b/src/soc/intel/apollolake/acpi/pcie_port.asl
@@ -49,7 +49,7 @@ PowerResource (PXP, 0, 0)
Method (_ON, 0, Serialized)
{
- If (LAnd (LEqual (PDST, 1), LNotEqual (\PRT0, 0))) {
+ If (LEqual (PDST, 1) && LNotEqual (\PRT0, 0)) {
/* Enter this condition if device
* is connected
*/
@@ -83,7 +83,7 @@ PowerResource (PXP, 0, 0)
Method (_OFF, 0, Serialized)
{
/* Set L23_Rdy Entry Request (L23ER) */
- If (LAnd (LEqual (PDST, 1), LNotEqual (\PRT0, 0))) {
+ If (LEqual (PDST, 1) && LNotEqual (\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 1ee70adb21..a5a1f06e60 100644
--- a/src/soc/intel/apollolake/acpi/scs.asl
+++ b/src/soc/intel/apollolake/acpi/scs.asl
@@ -118,7 +118,7 @@ Scope (\_SB.PCI0) {
Method (_INI, 0)
{
/* Check SDCard CD port is valid */
- If (LAnd (LNotEqual (\SCDP, 0), LNotEqual (\SCDO, 0) ))
+ If (LNotEqual (\SCDP, 0) && LNotEqual (\SCDO, 0))
{
/* Store DW0 address of SD_CD */
Store (GDW0 (\SCDP, \SCDO), SCD0)
@@ -133,7 +133,7 @@ Scope (\_SB.PCI0) {
Method (_PS0, 0, NotSerialized)
{
/* Check SDCard CD port is valid */
- If (LAnd (LNotEqual (\SCDP, 0), LNotEqual (\SCDO, 0) ))
+ If (LNotEqual (\SCDP, 0) && LNotEqual (\SCDO, 0))
{
/* Store DW0 into local0 to get rxstate of GPIO */
Store (\_SB.GPC0 (SCD0), Local0)