diff options
author | Felix Singer <felixsinger@posteo.net> | 2022-12-16 07:11:17 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-12-23 10:18:48 +0000 |
commit | 35e65a8bc36628baad7d2ed94bef7619971e6d88 (patch) | |
tree | a3b4d2afe3494eee4049db95f04a69d61113f006 /src/superio | |
parent | 86bc2e708dc2600c5611b6573d43645e7d57e561 (diff) |
tree: Replace And(a,b,c) with ASL 2.0 syntax
Replace `And (a, b, c)` with `c = a & b`, respectively `c &= b` where
possible.
Change-Id: Ie558f9d0b597c56ca3b31498edb68de8877d3a2f
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70850
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')
-rw-r--r-- | src/superio/winbond/w83627hf/acpi/superio.asl | 16 | ||||
-rw-r--r-- | src/superio/winbond/w83667hg-a/ps2_controller.asl | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/superio/winbond/w83627hf/acpi/superio.asl b/src/superio/winbond/w83627hf/acpi/superio.asl index b2dffc63b8..051fab5db5 100644 --- a/src/superio/winbond/w83627hf/acpi/superio.asl +++ b/src/superio/winbond/w83627hf/acpi/superio.asl @@ -399,9 +399,9 @@ Device(SIO) { Name (_UID, "w83627hf-pport") Method (MODE, 1) { - And(Arg0, 0x07, Local0) + Local0 = Arg0 & 7 ENTER_CONFIG_MODE (1) - And(OPT1, 0x3, Local1) + Local1 = OPT1 & 3 OPT1 = Local1 | Local0 EXIT_CONFIG_MODE() } @@ -420,7 +420,7 @@ Device(SIO) { { Local0 = 0x00 ENTER_CONFIG_MODE (1) - And(OPT1, 0x3, Local1) + Local1 = OPT1 & 3 If (ACTR) { If (Local1 != 2) { Local0 = 0x0D @@ -488,8 +488,8 @@ Device(SIO) { IOR0 = Local1 /* Set align and length based on active parallel port mode */ - And(Local2, 0x3, Local3) - And(Local2, 0x4, Local4) + Local3 = Local2 & 3 + Local4 = Local2 & 4 If (Local4) { IOAL = 0x04 } @@ -578,7 +578,7 @@ Device(SIO) { IO1H = Local1 /* Mode */ Local3 = OPT1 - And (Local3, 0xF8, Local3) + Local3 &= 0xF8 OPT1 = Local2 | Local3 /* DMA off */ DMA0 = 0x04 @@ -1347,7 +1347,7 @@ Device(SIO) { { ENTER_CONFIG_MODE (9) Local0 = OPT4 - And(Local0, 63, Local0) + Local0 &= 63 OPT4 = Local0 | (And(Arg0, 0x03) << 6) EXIT_CONFIG_MODE () } @@ -1357,7 +1357,7 @@ Device(SIO) { { ENTER_CONFIG_MODE (8) Local0 = OPT4 - And(Local0, 63, Local0) + Local0 &= 63 OPT4 = Local0 | (And(Arg0, 0x03) << 6) EXIT_CONFIG_MODE () } diff --git a/src/superio/winbond/w83667hg-a/ps2_controller.asl b/src/superio/winbond/w83667hg-a/ps2_controller.asl index ef9a01fe96..139a68643a 100644 --- a/src/superio/winbond/w83667hg-a/ps2_controller.asl +++ b/src/superio/winbond/w83667hg-a/ps2_controller.asl @@ -49,7 +49,7 @@ SIOI = 0x87 /* Read Pin56 function select */ - And(CR2A, 0x2, Local0) + Local0 = CR2A & 2 /* Restore default SuperIO access */ SIOI = 0xAA |