summaryrefslogtreecommitdiff
path: root/src/superio/winbond/w83627dhg/acpi
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-10-04 09:33:21 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-10-12 14:38:58 +0000
commite96941d9521dc897a1099071f4ea6fcdd3abf877 (patch)
tree6edf0a19d68659b2e651bc88f0df811ec1377ddd /src/superio/winbond/w83627dhg/acpi
parentd20d818b8c002538dc18a146b004b914c75c9dad (diff)
superio/winbond/*/acpi: Convert superio.asl to ASL 2.0 syntax
Change-Id: I67e08a1099e41acb7031469069d9eddb274f7735 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45994 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/superio/winbond/w83627dhg/acpi')
-rw-r--r--src/superio/winbond/w83627dhg/acpi/superio.asl14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/superio/winbond/w83627dhg/acpi/superio.asl b/src/superio/winbond/w83627dhg/acpi/superio.asl
index 4667b13b28..298e9a7c0d 100644
--- a/src/superio/winbond/w83627dhg/acpi/superio.asl
+++ b/src/superio/winbond/w83627dhg/acpi/superio.asl
@@ -111,7 +111,7 @@ Device(SUPERIO_DEV) {
/* PM: indicate IPD (Immediate Power Down) bit state as D0/D3 */
Method (_PSC) {
ENTER_CONFIG_MODE (PNP_NO_LDN_CHANGE)
- Store (IPD, Local0)
+ Local0 = IPD
EXIT_CONFIG_MODE ()
If (Local0) { Return (3) }
Else { Return (0) }
@@ -120,14 +120,14 @@ Device(SUPERIO_DEV) {
/* PM: Switch to D0 by setting IPD low */
Method (_PS0) {
ENTER_CONFIG_MODE (PNP_NO_LDN_CHANGE)
- Store (Zero, IPD)
+ IPD = 0
EXIT_CONFIG_MODE ()
}
/* PM: Switch to D3 by setting IPD high */
Method (_PS3) {
ENTER_CONFIG_MODE (PNP_NO_LDN_CHANGE)
- Store (One, IPD)
+ IPD = 1
EXIT_CONFIG_MODE ()
}
@@ -145,10 +145,10 @@ Device(SUPERIO_DEV) {
#define SUPERIO_SUSL_LDN 9
Method (SUSL, 1, Serialized) {
ENTER_CONFIG_MODE (SUPERIO_SUSL_LDN)
- Store (SULM, Local0)
- And (Local0, 0x1f, Local0)
- Or (Local0, ShiftLeft (Arg0, 5), Local0)
- Store (Local0, SULM)
+ Local0 = SULM
+ Local0 &= 0x1f
+ Local0 |= (Arg0 << 5)
+ SULM = Local0
EXIT_CONFIG_MODE ()
}