From 86bc2e708dc2600c5611b6573d43645e7d57e561 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Fri, 16 Dec 2022 04:40:39 +0100 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/70846 Reviewed-by: Eric Lai Tested-by: build bot (Jenkins) --- src/mainboard/aopen/dxplplusu/acpi/power.asl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/mainboard/aopen/dxplplusu/acpi/power.asl') 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 } ) } -- cgit v1.2.3