From 2f308d4957ab41070017094fc887c451b41e799a Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Mon, 12 Dec 2022 04:49:46 +0100 Subject: [PATCH] sb/intel/acpi: Replace Store(a,b) with ASL 2.0 syntax Replace `Store (a, b)` with `b = a`. Change-Id: I94b2e6ecb90a2616e184ae9331c397c75089e373 Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/70636 Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai --- src/southbridge/intel/i82371eb/acpi/intx.asl | 4 ++-- src/southbridge/intel/i82371eb/acpi/pirq.asl | 4 ++-- src/southbridge/intel/i82801ix/acpi/usb.asl | 24 ++++++++++---------- src/southbridge/intel/i82801jx/acpi/usb.asl | 24 ++++++++++---------- 4 files changed, 28 insertions(+), 28 deletions(-) diff --git a/src/southbridge/intel/i82371eb/acpi/intx.asl b/src/southbridge/intel/i82371eb/acpi/intx.asl index f4fa928cc5..087ab4d5e4 100644 --- a/src/southbridge/intel/i82371eb/acpi/intx.asl +++ b/src/southbridge/intel/i82371eb/acpi/intx.asl @@ -21,7 +21,7 @@ Device(intx) { \ } \ \ Method(_DIS ,0) { \ - Store(0x80, pinx) \ + pinx = 0x80 \ } \ \ Method(_PRS ,0) { \ @@ -42,6 +42,6 @@ Device(intx) { \ if (Local0) { \ Local0-- \ } \ - Store(Local0, pinx) \ + pinx = Local0 \ } \ } diff --git a/src/southbridge/intel/i82371eb/acpi/pirq.asl b/src/southbridge/intel/i82371eb/acpi/pirq.asl index eeab305299..f39c6d5edc 100644 --- a/src/southbridge/intel/i82371eb/acpi/pirq.asl +++ b/src/southbridge/intel/i82371eb/acpi/pirq.asl @@ -31,7 +31,7 @@ Device(intx) { \ } \ \ Method(_DIS ,0) { \ - Store(0x80, pinx) \ + pinx = 0x80 \ } \ \ Method(_PRS ,0) { \ @@ -52,7 +52,7 @@ Device(intx) { \ if (Local0) { \ Local0-- \ } \ - Store(Local0, pinx) \ + pinx = Local0 \ } \ } \ diff --git a/src/southbridge/intel/i82801ix/acpi/usb.asl b/src/southbridge/intel/i82801ix/acpi/usb.asl index 55929afb1a..f55ed6695d 100644 --- a/src/southbridge/intel/i82801ix/acpi/usb.asl +++ b/src/southbridge/intel/i82801ix/acpi/usb.asl @@ -21,9 +21,9 @@ Device (USB1) { // USB Controller can wake OS from Sleep State If (Arg0) { - Store (3, U1WE) + U1WE = 3 } Else { - Store (0, U1WE) + U1WE = 0 } } @@ -60,9 +60,9 @@ Device (USB2) { // USB Controller can wake OS from Sleep State If (Arg0) { - Store (3, U2WE) + U2WE = 3 } Else { - Store (0, U2WE) + U2WE = 0 } } @@ -100,9 +100,9 @@ Device (USB3) { // USB Controller can wake OS from Sleep State If (Arg0) { - Store (3, U3WE) + U3WE = 3 } Else { - Store (0, U3WE) + U3WE = 0 } } @@ -175,9 +175,9 @@ Device (USB4) { // USB Controller can wake OS from Sleep State If (Arg0) { - Store (3, U1WE) + U1WE = 3 } Else { - Store (0, U1WE) + U1WE = 0 } } @@ -214,9 +214,9 @@ Device (USB5) { // USB Controller can wake OS from Sleep State If (Arg0) { - Store (3, U2WE) + U2WE = 3 } Else { - Store (0, U2WE) + U2WE = 0 } } @@ -254,9 +254,9 @@ Device (USB6) { // USB Controller can wake OS from Sleep State If (Arg0) { - Store (3, U3WE) + U3WE = 3 } Else { - Store (0, U3WE) + U3WE = 0 } } diff --git a/src/southbridge/intel/i82801jx/acpi/usb.asl b/src/southbridge/intel/i82801jx/acpi/usb.asl index 55929afb1a..f55ed6695d 100644 --- a/src/southbridge/intel/i82801jx/acpi/usb.asl +++ b/src/southbridge/intel/i82801jx/acpi/usb.asl @@ -21,9 +21,9 @@ Device (USB1) { // USB Controller can wake OS from Sleep State If (Arg0) { - Store (3, U1WE) + U1WE = 3 } Else { - Store (0, U1WE) + U1WE = 0 } } @@ -60,9 +60,9 @@ Device (USB2) { // USB Controller can wake OS from Sleep State If (Arg0) { - Store (3, U2WE) + U2WE = 3 } Else { - Store (0, U2WE) + U2WE = 0 } } @@ -100,9 +100,9 @@ Device (USB3) { // USB Controller can wake OS from Sleep State If (Arg0) { - Store (3, U3WE) + U3WE = 3 } Else { - Store (0, U3WE) + U3WE = 0 } } @@ -175,9 +175,9 @@ Device (USB4) { // USB Controller can wake OS from Sleep State If (Arg0) { - Store (3, U1WE) + U1WE = 3 } Else { - Store (0, U1WE) + U1WE = 0 } } @@ -214,9 +214,9 @@ Device (USB5) { // USB Controller can wake OS from Sleep State If (Arg0) { - Store (3, U2WE) + U2WE = 3 } Else { - Store (0, U2WE) + U2WE = 0 } } @@ -254,9 +254,9 @@ Device (USB6) { // USB Controller can wake OS from Sleep State If (Arg0) { - Store (3, U3WE) + U3WE = 3 } Else { - Store (0, U3WE) + U3WE = 0 } }