diff options
author | Felix Singer <felixsinger@posteo.net> | 2022-12-16 04:40:39 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-12-23 10:17:34 +0000 |
commit | 86bc2e708dc2600c5611b6573d43645e7d57e561 (patch) | |
tree | 54b589e40a81ee74915df4ed68a6a13c944bc17d /src/superio/winbond/w83627hf/acpi | |
parent | 372573eaff0f757f004de2f4fb3f688de93bbbba (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/superio/winbond/w83627hf/acpi')
-rw-r--r-- | src/superio/winbond/w83627hf/acpi/superio.asl | 32 |
1 files changed, 16 insertions, 16 deletions
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) |