summaryrefslogtreecommitdiff
path: root/src/soc/intel
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-12-16 04:40:39 +0100
committerFelix Singer <felixsinger@posteo.net>2022-12-23 10:17:34 +0000
commit86bc2e708dc2600c5611b6573d43645e7d57e561 (patch)
tree54b589e40a81ee74915df4ed68a6a13c944bc17d /src/soc/intel
parent372573eaff0f757f004de2f4fb3f688de93bbbba (diff)
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>
Diffstat (limited to 'src/soc/intel')
-rw-r--r--src/soc/intel/baytrail/acpi/lpe.asl6
-rw-r--r--src/soc/intel/baytrail/acpi/lpss.asl60
-rw-r--r--src/soc/intel/baytrail/acpi/scc.asl18
-rw-r--r--src/soc/intel/baytrail/acpi/southcluster.asl2
-rw-r--r--src/soc/intel/braswell/acpi/lpe.asl6
-rw-r--r--src/soc/intel/braswell/acpi/lpss.asl54
-rw-r--r--src/soc/intel/braswell/acpi/scc.asl18
-rw-r--r--src/soc/intel/braswell/acpi/southcluster.asl2
-rw-r--r--src/soc/intel/cannonlake/acpi/scs.asl4
-rw-r--r--src/soc/intel/icelake/acpi/scs.asl4
10 files changed, 87 insertions, 87 deletions
diff --git a/src/soc/intel/baytrail/acpi/lpe.asl b/src/soc/intel/baytrail/acpi/lpe.asl
index 171134eb08..a997a6e2a0 100644
--- a/src/soc/intel/baytrail/acpi/lpe.asl
+++ b/src/soc/intel/baytrail/acpi/lpe.asl
@@ -87,14 +87,14 @@ Device (LPEA)
Method (_OFF)
{
- Or (PSAT, 0x00000003, PSAT)
- Or (PSAT, 0x00000000, PSAT)
+ PSAT |= 3
+ PSAT |= 0
}
Method (_ON)
{
And (PSAT, 0xfffffffc, PSAT)
- Or (PSAT, 0x00000000, PSAT)
+ PSAT |= 0
}
}
}
diff --git a/src/soc/intel/baytrail/acpi/lpss.asl b/src/soc/intel/baytrail/acpi/lpss.asl
index 997dc273a5..8882e0efa8 100644
--- a/src/soc/intel/baytrail/acpi/lpss.asl
+++ b/src/soc/intel/baytrail/acpi/lpss.asl
@@ -112,14 +112,14 @@ Device (I2C1)
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
}
}
@@ -171,14 +171,14 @@ Device (I2C2)
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
}
}
@@ -230,14 +230,14 @@ Device (I2C3)
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
}
}
@@ -289,14 +289,14 @@ Device (I2C4)
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
}
}
@@ -348,14 +348,14 @@ Device (I2C5)
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
}
}
@@ -407,14 +407,14 @@ Device (I2C6)
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
}
}
@@ -466,14 +466,14 @@ Device (I2C7)
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
}
}
@@ -519,14 +519,14 @@ Device (SPI1)
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
}
}
@@ -628,14 +628,14 @@ Device (UAR1)
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
}
}
@@ -681,13 +681,13 @@ Device (UAR2)
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
}
}
diff --git a/src/soc/intel/baytrail/acpi/scc.asl b/src/soc/intel/baytrail/acpi/scc.asl
index c5da6fe369..0dcac61021 100644
--- a/src/soc/intel/baytrail/acpi/scc.asl
+++ b/src/soc/intel/baytrail/acpi/scc.asl
@@ -41,14 +41,14 @@ Device (EMMC)
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)
@@ -104,14 +104,14 @@ Device (SDIO)
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
}
}
@@ -156,13 +156,13 @@ Device (SDCD)
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
}
}
diff --git a/src/soc/intel/baytrail/acpi/southcluster.asl b/src/soc/intel/baytrail/acpi/southcluster.asl
index 37ae3cad2e..03f884ab46 100644
--- a/src/soc/intel/baytrail/acpi/southcluster.asl
+++ b/src/soc/intel/baytrail/acpi/southcluster.asl
@@ -217,7 +217,7 @@ Method (_OSC, 4)
{
/* Unrecognized UUID */
CreateDWordField (Arg3, 0, CDW1)
- Or (CDW1, 4, CDW1)
+ CDW1 |= 4
Return (Arg3)
}
}
diff --git a/src/soc/intel/braswell/acpi/lpe.asl b/src/soc/intel/braswell/acpi/lpe.asl
index 02a88ff9e6..494fd244aa 100644
--- a/src/soc/intel/braswell/acpi/lpe.asl
+++ b/src/soc/intel/braswell/acpi/lpe.asl
@@ -87,14 +87,14 @@ Device (LPEA)
Method (_OFF)
{
- Or (PSAT, 0x00000003, PSAT)
- Or (PSAT, 0x00000000, PSAT)
+ PSAT |= 3
+ PSAT |= 0
}
Method (_ON)
{
And (PSAT, 0xfffffffc, PSAT)
- Or (PSAT, 0x00000000, PSAT)
+ PSAT |= 0
}
}
}
diff --git a/src/soc/intel/braswell/acpi/lpss.asl b/src/soc/intel/braswell/acpi/lpss.asl
index b0477b24f7..da495b8279 100644
--- a/src/soc/intel/braswell/acpi/lpss.asl
+++ b/src/soc/intel/braswell/acpi/lpss.asl
@@ -143,14 +143,14 @@ Device (I2C1)
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
}
}
@@ -202,14 +202,14 @@ Device (I2C2)
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
}
}
@@ -261,14 +261,14 @@ Device (I2C3)
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
}
}
@@ -320,14 +320,14 @@ Device (I2C4)
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
}
}
@@ -379,14 +379,14 @@ Device (I2C5)
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
}
}
@@ -438,14 +438,14 @@ Device (I2C6)
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
}
}
@@ -497,14 +497,14 @@ Device (I2C7)
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
}
}
@@ -550,14 +550,14 @@ Device (UAR1)
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
}
}
@@ -603,13 +603,13 @@ Device (UAR2)
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
}
}
diff --git a/src/soc/intel/braswell/acpi/scc.asl b/src/soc/intel/braswell/acpi/scc.asl
index 36c49ed023..9eaf7d2d66 100644
--- a/src/soc/intel/braswell/acpi/scc.asl
+++ b/src/soc/intel/braswell/acpi/scc.asl
@@ -41,14 +41,14 @@ Device (EMMC)
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 @@ Device (SDIO)
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 @@ Device (SDCD)
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
}
}
diff --git a/src/soc/intel/braswell/acpi/southcluster.asl b/src/soc/intel/braswell/acpi/southcluster.asl
index 96145704c9..2a374f0b71 100644
--- a/src/soc/intel/braswell/acpi/southcluster.asl
+++ b/src/soc/intel/braswell/acpi/southcluster.asl
@@ -216,7 +216,7 @@ Method (_OSC, 4)
{
/* Unrecognized UUID */
CreateDWordField (Arg3, 0, CDW1)
- Or (CDW1, 4, CDW1)
+ CDW1 |= 4
Return (Arg3)
}
}
diff --git a/src/soc/intel/cannonlake/acpi/scs.asl b/src/soc/intel/cannonlake/acpi/scs.asl
index e36824e7e5..5e8fb33f75 100644
--- a/src/soc/intel/cannonlake/acpi/scs.asl
+++ b/src/soc/intel/cannonlake/acpi/scs.asl
@@ -53,7 +53,7 @@ Scope (\_SB.PCI0) {
PGEN = 1 // Enable PG
/* Set Power State to D3 */
- Or (PMCR, 0x0003, PMCR)
+ PMCR |= 3
^TEMP = PMCR
}
@@ -223,7 +223,7 @@ Scope (\_SB.PCI0) {
PGEN = 1 /* Enable PG */
/* Set Power State to D3 */
- Or (PMCR, 0x0003, PMCR)
+ PMCR |= 3
^TEMP = PMCR
#if CONFIG(MB_HAS_ACTIVE_HIGH_SD_PWR_ENABLE)
diff --git a/src/soc/intel/icelake/acpi/scs.asl b/src/soc/intel/icelake/acpi/scs.asl
index 24a2b28c4f..2ec8569e8a 100644
--- a/src/soc/intel/icelake/acpi/scs.asl
+++ b/src/soc/intel/icelake/acpi/scs.asl
@@ -51,7 +51,7 @@ Scope (\_SB.PCI0) {
PGEN = 1 // Enable PG
/* Set Power State to D3 */
- Or (PMCR, 0x0003, PMCR)
+ PMCR |= 3
^TEMP = PMCR
}
@@ -105,7 +105,7 @@ Scope (\_SB.PCI0) {
PGEN = 1 /* Enable PG */
/* Set Power State to D3 */
- Or (PMCR, 0x0003, PMCR)
+ PMCR |= 3
^TEMP = PMCR
}