tree: Replace Or(a,b,c) with ASL 2.0 syntax
Replace `Or (a, b, c)` with `c = a | b`, respectively `c |= b` where
possible.
Change-Id: Icf194b248075f290de90fb4bc4e9a0cd9d76ec61
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70846
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/src/soc/intel/braswell/acpi/scc.asl b/src/soc/intel/braswell/acpi/scc.asl
index 36c49ed..9eaf7d2 100644
--- a/src/soc/intel/braswell/acpi/scc.asl
+++ b/src/soc/intel/braswell/acpi/scc.asl
@@ -41,14 +41,14 @@
Method (_PS3)
{
- Or (PSAT, 0x00000003, PSAT)
- Or (PSAT, 0x00000000, PSAT)
+ PSAT |= 3
+ PSAT |= 0
}
Method (_PS0)
{
And (PSAT, 0xfffffffc, PSAT)
- Or (PSAT, 0x00000000, PSAT)
+ PSAT |= 0
}
Device (EM45)
@@ -142,14 +142,14 @@
Method (_PS3)
{
- Or (PSAT, 0x00000003, PSAT)
- Or (PSAT, 0x00000000, PSAT)
+ PSAT |= 3
+ PSAT |= 0
}
Method (_PS0)
{
And (PSAT, 0xfffffffc, PSAT)
- Or (PSAT, 0x00000000, PSAT)
+ PSAT |= 0
}
}
@@ -194,13 +194,13 @@
Method (_PS3)
{
- Or (PSAT, 0x00000003, PSAT)
- Or (PSAT, 0x00000000, PSAT)
+ PSAT |= 3
+ PSAT |= 0
}
Method (_PS0)
{
And (PSAT, 0xfffffffc, PSAT)
- Or (PSAT, 0x00000000, PSAT)
+ PSAT |= 0
}
}