summaryrefslogtreecommitdiffstats
path: root/src/southbridge
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-12-16 07:54:16 +0100
committerFelix Singer <felixsinger@posteo.net>2022-12-23 10:18:55 +0000
commitd25277666829d7ed9897598d3ed46fdee0613106 (patch)
treea8aa22ed086730113ae0fefb2584fb0f424cc5c4 /src/southbridge
parent35e65a8bc36628baad7d2ed94bef7619971e6d88 (diff)
downloadcoreboot-d25277666829d7ed9897598d3ed46fdee0613106.tar.gz
coreboot-d25277666829d7ed9897598d3ed46fdee0613106.tar.bz2
coreboot-d25277666829d7ed9897598d3ed46fdee0613106.zip
tree: Replace And(a,b) with ASL 2.0 syntax
Replace `And (a, b)` with `a & b`. Change-Id: Id8bbd1a477e6286bbcb5fa31afd1c7a860b1c7dc Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70851 Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/southbridge')
-rw-r--r--src/southbridge/intel/i82371eb/acpi/intx.asl4
-rw-r--r--src/southbridge/intel/i82371eb/acpi/pirq.asl4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/southbridge/intel/i82371eb/acpi/intx.asl b/src/southbridge/intel/i82371eb/acpi/intx.asl
index ae5aeeed30e6..d7290a5c2522 100644
--- a/src/southbridge/intel/i82371eb/acpi/intx.asl
+++ b/src/southbridge/intel/i82371eb/acpi/intx.asl
@@ -14,7 +14,7 @@ Device(intx) { \
Name(_UID, uid) \
\
Method(_STA, 0) { \
- If (And(pinx, 0x80)) { \
+ If (pinx & 0x80) { \
Return(0x09) \
} \
Return(0x0B) \
@@ -30,7 +30,7 @@ Device(intx) { \
\
Method(_CRS ,0) { \
CreateWordField(IRQB, 1, IRQN) \
- IRQN = 1 << And(pinx, 0x0f) \
+ IRQN = 1 << (pinx & 0x0f) \
Return(IRQB) \
} \
\
diff --git a/src/southbridge/intel/i82371eb/acpi/pirq.asl b/src/southbridge/intel/i82371eb/acpi/pirq.asl
index 3f7518c76efc..294e28ee3bc6 100644
--- a/src/southbridge/intel/i82371eb/acpi/pirq.asl
+++ b/src/southbridge/intel/i82371eb/acpi/pirq.asl
@@ -24,7 +24,7 @@ Device(intx) { \
Name(_UID, uid) \
\
Method(_STA, 0) { \
- If (And(pinx, 0x80)) { \
+ If (pinx & 0x80) { \
Return(0x09) \
} \
Return(0x0B) \
@@ -40,7 +40,7 @@ Device(intx) { \
\
Method(_CRS ,0) { \
CreateWordField(IRQB, 1, IRQN) \
- IRQN = 1 << And(pinx, 0x0f) \
+ IRQN = 1 << (pinx & 0x0f) \
Return(IRQB) \
} \
\