summaryrefslogtreecommitdiff
path: root/src/mainboard/asus
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-10-08 09:12:50 +0200
committerMichael Niewöhner <foss@mniewoehner.de>2021-01-26 20:59:51 +0000
commit76eaab0fd973f2a776026575dec39c62445b2934 (patch)
tree0b010db0390905354df22756c3f436695fba6c28 /src/mainboard/asus
parente404eb2aba8849a37b9f98f4d9bc4181eeffb234 (diff)
downloadcoreboot-76eaab0fd973f2a776026575dec39c62445b2934.tar.xz
mb/asus/am1i-a: Convert to ASL 2.0 syntax
Generated 'build/dsdt.dsl' are identical. Change-Id: I856494c634c8c932faa7840b0fd0a35663f4de57 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46157 Reviewed-by: Michael Niewöhner <foss@mniewoehner.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/asus')
-rw-r--r--src/mainboard/asus/am1i-a/acpi/sata.asl24
-rw-r--r--src/mainboard/asus/am1i-a/acpi/sleep.asl8
2 files changed, 16 insertions, 16 deletions
diff --git a/src/mainboard/asus/am1i-a/acpi/sata.asl b/src/mainboard/asus/am1i-a/acpi/sata.asl
index 84cc348134..27e5222c58 100644
--- a/src/mainboard/asus/am1i-a/acpi/sata.asl
+++ b/src/mainboard/asus/am1i-a/acpi/sata.asl
@@ -22,7 +22,7 @@ Device(PMRY)
Device(PMST) {
Name(_ADR, 0)
Method(_STA,0) {
- if (LGreater(P0IS,0)) {
+ if (P0IS > 0) {
return (0x0F) /* sata is visible */
}
else {
@@ -35,7 +35,7 @@ Device(PMRY)
{
Name(_ADR, 1)
Method(_STA,0) {
- if (LGreater(P1IS,0)) {
+ if (P1IS > 0) {
return (0x0F) /* sata is visible */
}
else {
@@ -57,7 +57,7 @@ Device(SEDY)
{
Name(_ADR, 0)
Method(_STA,0) {
- if (LGreater(P2IS,0)) {
+ if (P2IS > 0) {
return (0x0F) /* sata is visible */
}
else {
@@ -70,7 +70,7 @@ Device(SEDY)
{
Name(_ADR, 1)
Method(_STA,0) {
- if (LGreater(P3IS,0)) {
+ if (P3IS > 0) {
return (0x0F) /* sata is visible */
}
else {
@@ -84,35 +84,35 @@ Device(SEDY)
Scope(\_GPE) {
Method(_L1F,0x0,NotSerialized) {
if (\_SB.P0PR) {
- if (LGreater(\_SB.P0IS,0)) {
+ if (\_SB.P0IS > 0) {
sleep(32)
}
Notify(\_SB.PCI0.STCR.PMRY.PMST, 0x01) /* NOTIFY_DEVICE_CHECK */
- store(one, \_SB.P0PR)
+ \_SB.P0PR = 1
}
if (\_SB.P1PR) {
- if (LGreater(\_SB.P1IS,0)) {
+ if (\_SB.P1IS > 0) {
sleep(32)
}
Notify(\_SB.PCI0.STCR.PMRY.PSLA, 0x01) /* NOTIFY_DEVICE_CHECK */
- store(one, \_SB.P1PR)
+ \_SB.P1PR = 1
}
if (\_SB.P2PR) {
- if (LGreater(\_SB.P2IS,0)) {
+ if (\_SB.P2IS > 0) {
sleep(32)
}
Notify(\_SB.PCI0.STCR.SEDY.SMST, 0x01) /* NOTIFY_DEVICE_CHECK */
- store(one, \_SB.P2PR)
+ \_SB.P2PR = 1
}
if (\_SB.P3PR) {
- if (LGreater(\_SB.P3IS,0)) {
+ if (\_SB.P3IS > 0) {
sleep(32)
}
Notify(\_SB.PCI0.STCR.SEDY.SSLA, 0x01) /* NOTIFY_DEVICE_CHECK */
- store(one, \_SB.P3PR)
+ \_SB.P3PR = 1
}
}
}
diff --git a/src/mainboard/asus/am1i-a/acpi/sleep.asl b/src/mainboard/asus/am1i-a/acpi/sleep.asl
index 47dd1460b1..fc26c306d9 100644
--- a/src/mainboard/asus/am1i-a/acpi/sleep.asl
+++ b/src/mainboard/asus/am1i-a/acpi/sleep.asl
@@ -30,9 +30,9 @@ Method(_PTS, 1) {
/* DBGO("\n") */
/* Clear wake status structure. */
- Store(0, Index(WKST,0))
- Store(0, Index(WKST,1))
- Store(7, UPWS)
+ WKST [0] = 0
+ WKST [1] = 0
+ UPWS = 7
\_SB.APTS(Arg0)
} /* End Method(\_PTS) */
@@ -56,7 +56,7 @@ Method(\_WAK, 1) {
/* DBGO("From S") */
/* DBGO(Arg0) */
/* DBGO(" to S0\n") */
- Store(1,USBS)
+ USBS = 1
\_SB.AWAK(Arg0)