aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ec/google/chromeec/acpi/battery.asl2
-rw-r--r--src/ec/google/chromeec/acpi/ec.asl2
-rw-r--r--src/ec/kontron/it8516e/acpi/pm_channels.asl2
-rw-r--r--src/ec/lenovo/h8/acpi/thinkpad.asl14
-rw-r--r--src/ec/quanta/it8518/acpi/battery.asl4
-rw-r--r--src/ec/smsc/mec1308/acpi/battery.asl4
-rw-r--r--src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl4
-rw-r--r--src/mainboard/aopen/dxplplusu/acpi/power.asl12
-rw-r--r--src/mainboard/aopen/dxplplusu/acpi/superio.asl14
-rw-r--r--src/mainboard/lenovo/s230u/acpi/gpe.asl4
-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
-rw-r--r--src/southbridge/intel/bd82x6x/acpi/pch.asl2
-rw-r--r--src/southbridge/intel/i82801ix/acpi/ich9.asl2
-rw-r--r--src/southbridge/intel/i82801jx/acpi/ich10.asl2
-rw-r--r--src/superio/acpi/pnp.asl2
-rw-r--r--src/superio/winbond/w83627hf/acpi/superio.asl32
25 files changed, 138 insertions, 138 deletions
diff --git a/src/ec/google/chromeec/acpi/battery.asl b/src/ec/google/chromeec/acpi/battery.asl
index 114a10c36c..a98117126b 100644
--- a/src/ec/google/chromeec/acpi/battery.asl
+++ b/src/ec/google/chromeec/acpi/battery.asl
@@ -175,7 +175,7 @@ Method (BBST, 4, Serialized)
// Check for critical battery level
If (BFCR) {
- Or (Local1, 0x04, Local1)
+ Local1 |= 4
}
Arg1[0] = Local1
diff --git a/src/ec/google/chromeec/acpi/ec.asl b/src/ec/google/chromeec/acpi/ec.asl
index 7a17c54cfc..59f14d1d08 100644
--- a/src/ec/google/chromeec/acpi/ec.asl
+++ b/src/ec/google/chromeec/acpi/ec.asl
@@ -621,7 +621,7 @@ Device (EC0)
*/
Method (UPPS, 1, Serialized)
{
- Or (USPP, 1 << Arg0, USPP)
+ USPP |= 1 << Arg0
}
/*
diff --git a/src/ec/kontron/it8516e/acpi/pm_channels.asl b/src/ec/kontron/it8516e/acpi/pm_channels.asl
index b57e1995b7..8f3fc7e1d2 100644
--- a/src/ec/kontron/it8516e/acpi/pm_channels.asl
+++ b/src/ec/kontron/it8516e/acpi/pm_channels.asl
@@ -90,7 +90,7 @@ Device (PM2) {
}
Release (EC_MUTEX)
- Or (Local1 << 8, Local0, Local0)
+ Local0 |= Local1 << 8
Local0 *= 10 / 64 /* Convert to 10th °C */
Return (Local0 + 2732) /* Return as 10th Kelvin */
}
diff --git a/src/ec/lenovo/h8/acpi/thinkpad.asl b/src/ec/lenovo/h8/acpi/thinkpad.asl
index f4b2dbd63e..fea97c15df 100644
--- a/src/ec/lenovo/h8/acpi/thinkpad.asl
+++ b/src/ec/lenovo/h8/acpi/thinkpad.asl
@@ -87,7 +87,7 @@ Device (HKEY)
Local0 = One << (Arg0 - 1)
If (Arg1)
{
- Or (DHKN, Local0, DHKN)
+ DHKN |= Local0
}
Else
{
@@ -165,9 +165,9 @@ Device (HKEY)
Local0 = One
If(\_SB.PCI0.LPCB.EC.BTEB)
{
- Or(Local0, 2, Local0)
+ Local0 |= 2
}
- Or(Local0, WBDC << 2, Local0)
+ Local0 |= WBDC << 2
Return (Local0)
} Else {
Return (0)
@@ -207,9 +207,9 @@ Device (HKEY)
Local0 = One
If(\_SB.PCI0.LPCB.EC.WWEB)
{
- Or(Local0, 2, Local0)
+ Local0 |= 2
}
- Or(Local0, WWAN << 2, Local0)
+ Local0 |= WWAN << 2
Return (Local0)
} Else {
Return (0)
@@ -243,7 +243,7 @@ Device (HKEY)
If (HKBL) {
Local0 = 0x200
/* FIXME: Support 2bit brightness control */
- Or (Local0, \_SB.PCI0.LPCB.EC.KBLT, Local0)
+ Local0 |= \_SB.PCI0.LPCB.EC.KBLT
Return (Local0)
} Else {
Return (0)
@@ -273,7 +273,7 @@ Device (HKEY)
Local0 = One
If(\_SB.PCI0.LPCB.EC.UWBE)
{
- Or(Local0, 2, Local0)
+ Local0 |= 2
}
Return (Local0)
} Else {
diff --git a/src/ec/quanta/it8518/acpi/battery.asl b/src/ec/quanta/it8518/acpi/battery.asl
index 82269010ef..ef7a8e2520 100644
--- a/src/ec/quanta/it8518/acpi/battery.asl
+++ b/src/ec/quanta/it8518/acpi/battery.asl
@@ -235,7 +235,7 @@ Device (BATX)
// Set critical flag if battery is empty
If (And (HB0S, 0x0F) == 0)
{
- Or (Local0, 4, Local0)
+ Local0 |= 4
}
Local1 = Zero
@@ -254,7 +254,7 @@ Device (BATX)
// Flag if the battery level is critical
And (Local0, 0x04, Local4)
- Or (Local1, Local4, Local1)
+ Local1 |= Local4
PBST[0] = Local1
//
diff --git a/src/ec/smsc/mec1308/acpi/battery.asl b/src/ec/smsc/mec1308/acpi/battery.asl
index fad52d2091..f0e6d6d4ec 100644
--- a/src/ec/smsc/mec1308/acpi/battery.asl
+++ b/src/ec/smsc/mec1308/acpi/battery.asl
@@ -62,7 +62,7 @@ Device (BAT0)
Local0 = Arg0 >> 8
Local1 = Arg0 << 8
And (Local1, 0xFF00, Local1)
- Or (Local0, Local1, Local0)
+ Local0 |= Local1
If (Local0 == 0xFFFF) {
Local0 = 0xFFFFFFFF
}
@@ -119,7 +119,7 @@ Device (BAT0)
// Flag if the battery level is critical
And (Local0, 0x04, Local4)
- Or (Local1, Local4, Local1)
+ Local1 |= Local4
PBST[0] = Local1
// Notify if battery state has changed since last time
diff --git a/src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl b/src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl
index 7d175a23e5..285615d3f8 100644
--- a/src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl
+++ b/src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl
@@ -12,14 +12,14 @@ Scope (_TZ)
Local0 = \_SB.PCI0.LPCB.EC0.MS0T
Local1 = \_SB.PCI0.LPCB.EC0.MCSS
/* Suppress warning over reading status flag by dummy OR */
- Or (Local1, 1, Local1)
+ Local1 |= 1
Local2 = \_SB.PCI0.LPCB.EC0.MOSD
#else
Local0 = \_SB.PCI0.LPCB.EC0.ES0T
/* "MCSS": Considering neighbouring bits, likely
"ESSF" in thermals, not "ECSS" in power notifications */
Local1 = \_SB.PCI0.LPCB.EC0.ESSF
- Or (Local1, 1, Local1)
+ Local1 |= 1
Local2 = \_SB.PCI0.LPCB.EC0.EOSD
#endif
If (Local2) // Thermal trip
diff --git a/src/mainboard/aopen/dxplplusu/acpi/power.asl b/src/mainboard/aopen/dxplplusu/acpi/power.asl
index 903d844d42..c7b178a44f 100644
--- a/src/mainboard/aopen/dxplplusu/acpi/power.asl
+++ b/src/mainboard/aopen/dxplplusu/acpi/power.asl
@@ -50,22 +50,22 @@ Scope (\_GPE)
/* Clear power buttons */
Method (\_INI, 0, NotSerialized)
{
- Or (\_SB.PCI0.ICH0.PS1H, 0x09, \_SB.PCI0.ICH0.PS1H)
- Or (\_SB.PCI0.ICH0.PE1H, 0x01, \_SB.PCI0.ICH0.PE1H)
+ \_SB.PCI0.ICH0.PS1H |= 9
+ \_SB.PCI0.ICH0.PE1H |= 1
}
/* Prepare To Sleep */
Method (\_PTS, 1, NotSerialized)
{
- Or (\_SB.PCI0.ICH0.GS0H, 0x19, \_SB.PCI0.ICH0.GS0H)
- Or (\_SB.PCI0.ICH0.GS0L, 0x11, \_SB.PCI0.ICH0.GS0L)
+ \_SB.PCI0.ICH0.GS0H |= 0x19
+ \_SB.PCI0.ICH0.GS0L |= 0x11
}
/* System Wake */
Method (\_WAK, 1, NotSerialized)
{
- Or (\_SB.PCI0.ICH0.GS0H, 0x19, \_SB.PCI0.ICH0.GS0H)
- Or (\_SB.PCI0.ICH0.GS0L, 0x11, \_SB.PCI0.ICH0.GS0L)
+ \_SB.PCI0.ICH0.GS0H |= 0x19
+ \_SB.PCI0.ICH0.GS0L |= 0x11
Return ( Package() { 0x0, 0x0 } )
}
diff --git a/src/mainboard/aopen/dxplplusu/acpi/superio.asl b/src/mainboard/aopen/dxplplusu/acpi/superio.asl
index 22b0e2297e..cd8dc8bf2f 100644
--- a/src/mainboard/aopen/dxplplusu/acpi/superio.asl
+++ b/src/mainboard/aopen/dxplplusu/acpi/superio.asl
@@ -75,9 +75,9 @@ Method (_CRS, 0, NotSerialized)
\_SB.PCI0.ICH0.SMSC.LDN = 0x0A
IOM1 = 0x00
IOM2 = 0x00
- Or (\_SB.PCI0.ICH0.SMSC.IOAH, IOM1, IOM1)
+ IOM1 |= \_SB.PCI0.ICH0.SMSC.IOAH
IOM1 <<= 8
- Or (\_SB.PCI0.ICH0.SMSC.IOAL, IOM1, IOM1)
+ IOM1 |= \_SB.PCI0.ICH0.SMSC.IOAL
IOM2 = IOM1
If (IOM1 != 0)
{
@@ -111,28 +111,28 @@ Method (_INI, 0, NotSerialized)
/* GPIO initial output levels */
Local0 = GP_1
And( Local0, 0x7C, Local0)
- Or ( Local0, 0x81, Local0)
+ Local0 |= 0x81
GP_1 = Local0
Local0 = GP_2
And( Local0, 0xFE, Local0)
- Or ( Local0, 0x00, Local0)
+ Local0 |= 0
GP_2 = Local0
Local0 = GP_3
And( Local0, 0x7F, Local0)
- Or ( Local0, 0x80, Local0)
+ Local0 |= 0x80
GP_3 = Local0
Local0 = GP_4
And( Local0, 0x7F, Local0)
- Or ( Local0, 0x00, Local0)
+ Local0 |= 0
GP_4 = Local0
/* Power Led */
Local0 = LED1
And( Local0, 0xfc, Local0)
- Or ( Local0, 0x01, Local0)
+ Local0 |= 1
LED1 = Local0
}
diff --git a/src/mainboard/lenovo/s230u/acpi/gpe.asl b/src/mainboard/lenovo/s230u/acpi/gpe.asl
index 4f25557cf6..f9ba2096fb 100644
--- a/src/mainboard/lenovo/s230u/acpi/gpe.asl
+++ b/src/mainboard/lenovo/s230u/acpi/gpe.asl
@@ -6,7 +6,7 @@ Scope (_GPE)
Method (PNOT, 2, Serialized) {
Local0 = Arg0 << Arg1
Not(One << Arg1, Local1)
- Or (Local0, And (Local1, PDET), PDET)
+ PDET = Local0 | And (Local1, PDET)
If (PDET == Zero) {
// Palm removed
\_SB.PCI0.LPCB.EC0.HKEY.MHKQ (0x60B1)
@@ -22,7 +22,7 @@ Scope (_GPE)
Not (Local0, Local0)
And (GIV0, Local0, GIV0)
} Else {
- Or (GIV0, Local0, GIV0)
+ GIV0 |= Local0
}
}
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
}
diff --git a/src/southbridge/intel/bd82x6x/acpi/pch.asl b/src/southbridge/intel/bd82x6x/acpi/pch.asl
index 1bfd7201d2..718d79ed82 100644
--- a/src/southbridge/intel/bd82x6x/acpi/pch.asl
+++ b/src/southbridge/intel/bd82x6x/acpi/pch.asl
@@ -252,7 +252,7 @@ Method (_OSC, 4)
/* Else Return Unrecognized UUID */
CreateDWordField (Arg3, 0, CDW1)
- Or (CDW1, 4, CDW1)
+ CDW1 |= 4
Return (Arg3)
}
diff --git a/src/southbridge/intel/i82801ix/acpi/ich9.asl b/src/southbridge/intel/i82801ix/acpi/ich9.asl
index 822bc12958..53339b4512 100644
--- a/src/southbridge/intel/i82801ix/acpi/ich9.asl
+++ b/src/southbridge/intel/i82801ix/acpi/ich9.asl
@@ -173,7 +173,7 @@ Method (_OSC, 4)
{
/* Unrecognized UUID */
CreateDWordField (Arg3, 0, CDW1)
- Or (CDW1, 4, CDW1)
+ CDW1 |= 4
Return (Arg3)
}
}
diff --git a/src/southbridge/intel/i82801jx/acpi/ich10.asl b/src/southbridge/intel/i82801jx/acpi/ich10.asl
index d6b84adc05..26fcbf67ae 100644
--- a/src/southbridge/intel/i82801jx/acpi/ich10.asl
+++ b/src/southbridge/intel/i82801jx/acpi/ich10.asl
@@ -175,7 +175,7 @@ Method (_OSC, 4)
{
/* Unrecognized UUID */
CreateDWordField (Arg3, 0, CDW1)
- Or (CDW1, 4, CDW1)
+ CDW1 |= 4
Return (Arg3)
}
}
diff --git a/src/superio/acpi/pnp.asl b/src/superio/acpi/pnp.asl
index 167c3636b1..965145e2f7 100644
--- a/src/superio/acpi/pnp.asl
+++ b/src/superio/acpi/pnp.asl
@@ -102,7 +102,7 @@
#define PNP_READ_IO(IO_FROM, RESOURCE_TEMPLATE, IO_TAG) \
CreateWordField (RESOURCE_TEMPLATE, IO_TAG._MIN, IO_TAG##I)\
CreateWordField (RESOURCE_TEMPLATE, IO_TAG._MAX, IO_TAG##A)\
- Or (IO_FROM##_HIGH_BYTE << 8, IO_FROM##_LOW_BYTE, Local0)\
+ Local0 = (IO_FROM##_HIGH_BYTE << 8) | IO_FROM##_LOW_BYTE \
IO_TAG##I = Local0 \
IO_TAG##A = Local0
diff --git a/src/superio/winbond/w83627hf/acpi/superio.asl b/src/superio/winbond/w83627hf/acpi/superio.asl
index 24c1323ea7..b2dffc63b8 100644
--- a/src/superio/winbond/w83627hf/acpi/superio.asl
+++ b/src/superio/winbond/w83627hf/acpi/superio.asl
@@ -259,7 +259,7 @@ Device(SIO) {
EXIT_CONFIG_MODE ()
/* Calculate full IO port address */
- Or(Local1 << 8, Local0, Local0)
+ Local0 |= Local1 << 8
/* Modify the resource template and return it */
CreateWordField (CRS, IO0._MIN, IMIN)
@@ -305,7 +305,7 @@ Device(SIO) {
Local2 = IO1L
EXIT_CONFIG_MODE ()
Local1 <<= 8
- Or(Local1, Local2, Local1)
+ Local1 |= Local2
If (!Local0) {
Return (FDE)
}
@@ -402,7 +402,7 @@ Device(SIO) {
And(Arg0, 0x07, Local0)
ENTER_CONFIG_MODE (1)
And(OPT1, 0x3, Local1)
- Or(Local1, Local0, OPT1)
+ OPT1 = Local1 | Local0
EXIT_CONFIG_MODE()
}
@@ -483,7 +483,7 @@ Device(SIO) {
Local5 = IRQ0
EXIT_CONFIG_MODE ()
/* Calculate IO port and modify template */
- Or(Local1 << 8, Local0, Local0)
+ Local0 |= Local1 << 8
IOP0 = Local1
IOR0 = Local1
@@ -579,7 +579,7 @@ Device(SIO) {
/* Mode */
Local3 = OPT1
And (Local3, 0xF8, Local3)
- Or (Local2, Local3, OPT1)
+ OPT1 = Local2 | Local3
/* DMA off */
DMA0 = 0x04
/* IRQ */
@@ -651,7 +651,7 @@ Device(SIO) {
Local1 = IO1H
Local2 = IRQ0
EXIT_CONFIG_MODE ()
- Or(Local1 << 8, Local0, Local0)
+ Local0 |= Local1 << 8
CreateWordField (CRS, IO0._MIN, IMIN)
IMIN = Local0
@@ -776,7 +776,7 @@ Device(SIO) {
Local1 = IO1H
Local2 = IRQ0
EXIT_CONFIG_MODE ()
- Or(Local1 << 8, Local0, Local0)
+ Local0 |= Local1 << 8
CreateWordField (CRS, IO0._MIN, IMIN)
IMIN = Local0
@@ -901,7 +901,7 @@ Device(SIO) {
Local0 = IO1L
Local2 = IRQ0
EXIT_CONFIG_MODE ()
- Or(Local1 << 8, Local0, Local0)
+ Local0 |= Local1 << 8
CreateWordField (CRS, IO0._MIN, IMIN)
IMIN = Local0
@@ -1004,7 +1004,7 @@ Device(SIO) {
Local1 = IO1H
Local2 = IRQ0
EXIT_CONFIG_MODE ()
- Or(Local1 << 8, Local0, Local0)
+ Local0 |= Local1 << 8
CreateWordField (CRS, IO0._MIN, IMIN)
IMIN = Local0
@@ -1099,8 +1099,8 @@ Device(SIO) {
Local4 = IRQ0
EXIT_CONFIG_MODE ()
- Or(Local1 << 8, Local0, Local0)
- Or(Local3 << 8, Local2, Local2)
+ Local0 |= Local1 << 8
+ Local2 |= Local3 << 8
CreateWordField (CRS, IO0._MIN, IMIN)
IMIN = Local0
@@ -1268,7 +1268,7 @@ Device(SIO) {
Local2 = IRQ0
EXIT_CONFIG_MODE ()
- Or(Local1 << 8, Local0, Local0)
+ Local0 |= Local1 << 8
CreateWordField (CRS, IO0._MIN, IMIN)
CreateWordField (CRS, IO0._MAX, IMAX)
@@ -1323,7 +1323,7 @@ Device(SIO) {
Local2 = IRQ1
EXIT_CONFIG_MODE ()
- Or(Local1 << 8, Local0, Local0)
+ Local0 |= Local1 << 8
CreateWordField (CRS, IO0._MIN, IMIN)
CreateWordField (CRS, IO0._MAX, IMAX)
@@ -1348,7 +1348,7 @@ Device(SIO) {
ENTER_CONFIG_MODE (9)
Local0 = OPT4
And(Local0, 63, Local0)
- Or(Local0, And(Arg0, 0x03) << 6, OPT4)
+ OPT4 = Local0 | (And(Arg0, 0x03) << 6)
EXIT_CONFIG_MODE ()
}
@@ -1358,7 +1358,7 @@ Device(SIO) {
ENTER_CONFIG_MODE (8)
Local0 = OPT4
And(Local0, 63, Local0)
- Or(Local0, And(Arg0, 0x03) << 6, OPT4)
+ OPT4 = Local0 | (And(Arg0, 0x03) << 6)
EXIT_CONFIG_MODE ()
}
@@ -1422,7 +1422,7 @@ Device(SIO) {
Local2 = IRQ1
EXIT_CONFIG_MODE ()
- Or(Local1 << 8, Local0, Local0)
+ Local0 |= Local1 << 8
CreateWordField (CRS, IO0._MIN, IMIN)
CreateWordField (CRS, IO0._MAX, IMAX)