summaryrefslogtreecommitdiff
path: root/src/drivers/intel
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/drivers/intel
parent35e65a8bc36628baad7d2ed94bef7619971e6d88 (diff)
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/drivers/intel')
-rw-r--r--src/drivers/intel/gma/acpi/configure_brightness_levels.asl4
-rw-r--r--src/drivers/intel/gma/acpi/gma.asl2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/intel/gma/acpi/configure_brightness_levels.asl b/src/drivers/intel/gma/acpi/configure_brightness_levels.asl
index c2f63513c7..689ebc485e 100644
--- a/src/drivers/intel/gma/acpi/configure_brightness_levels.asl
+++ b/src/drivers/intel/gma/acpi/configure_brightness_levels.asl
@@ -46,7 +46,7 @@
{
Return (Ones)
}
- If (And(MBOX, 0x4) == 0)
+ If (MBOX & 4 == 0)
{
Return (Ones)
}
@@ -74,7 +74,7 @@
While (Local0 > 0)
{
Sleep (1)
- If (And (ASLC, 0x2) == 0) {
+ If (ASLC & 2 == 0) {
/* Request has been processed, check status: */
Local1 = (ASLC >> 12) & 3
If (Local1 == 0) {
diff --git a/src/drivers/intel/gma/acpi/gma.asl b/src/drivers/intel/gma/acpi/gma.asl
index 2282110fb9..0b21f66447 100644
--- a/src/drivers/intel/gma/acpi/gma.asl
+++ b/src/drivers/intel/gma/acpi/gma.asl
@@ -13,7 +13,7 @@ Scope (GFX0)
ASLS, 32,
}
- OperationRegion (GFRG, SystemMemory, And (BAR0, 0xfffffffffffffff0), 0x400000)
+ OperationRegion (GFRG, SystemMemory, BAR0 & 0xfffffffffffffff0, 0x400000)
Field (GFRG, DWordAcc, NoLock, Preserve)
{
Offset (CONFIG_INTEL_GMA_BCLV_OFFSET),