summaryrefslogtreecommitdiff
path: root/src/mainboard/biostar/a68n_5200
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-10-08 09:16:29 +0200
committerMichael Niewöhner <foss@mniewoehner.de>2021-01-28 18:03:02 +0000
commitd4ed0e1c48c16ebfd680d6b7be7e1735ecff474b (patch)
tree07783f8b8e57464bd497da98239680aadc32b80d /src/mainboard/biostar/a68n_5200
parentc102bbd2adee0f03c776bac59754f2dd05039350 (diff)
mb/biostar/a68n_5200: Convert to ASL 2.0 syntax
Generated 'build/dsdt.dsl' files are same. Change-Id: I122f27bf7e7b809802efdbd443694b3d6e715108 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46076 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
Diffstat (limited to 'src/mainboard/biostar/a68n_5200')
-rw-r--r--src/mainboard/biostar/a68n_5200/acpi/AmdImc.asl82
-rw-r--r--src/mainboard/biostar/a68n_5200/acpi/sleep.asl8
2 files changed, 45 insertions, 45 deletions
diff --git a/src/mainboard/biostar/a68n_5200/acpi/AmdImc.asl b/src/mainboard/biostar/a68n_5200/acpi/AmdImc.asl
index a04e298ff6..44838347dc 100644
--- a/src/mainboard/biostar/a68n_5200/acpi/AmdImc.asl
+++ b/src/mainboard/biostar/a68n_5200/acpi/AmdImc.asl
@@ -19,9 +19,9 @@ IndexField(IMCX, IMCA, ByteAcc, NoLock, Preserve) {
Method(WACK, 0)
{
- Store(0, Local0)
- While (LNotEqual(Local0, 0xFA)) {
- Store(MRG0, Local0)
+ Local0 = 0
+ While (Local0 != 0xfa) {
+ Local0 = MRG0
Sleep(10)
}
}
@@ -29,69 +29,69 @@ Method(WACK, 0)
//Init
Method (ITZE, 0)
{
- Store(0, MRG0)
- Store(0xB5, MRG1)
- Store(0, MRG2)
- Store(0x96, MSTI)
+ MRG0 = 0
+ MRG1 = 0xb5
+ MRG2 = 0
+ MSTI = 0x96
WACK()
- Store(0, MRG0)
- Store(0, MRG1)
- Store(0, MRG2)
- Store(0x80, MSTI)
+ MRG0 = 0
+ MRG1 = 0
+ MRG2 = 0
+ MSTI = 0x80
WACK()
- Or(MRG2, 0x01, Local0)
+ Local0 = MRG2 | 0x01
- Store(0, MRG0)
- Store(0, MRG1)
- Store(Local0, MRG2)
- Store(0x81, MSTI)
+ MRG0 = 0
+ MRG1 = 0
+ MRG2 = Local0
+ MSTI = 0x81
WACK()
}
//Sleep
Method (IMSP, 0)
{
- Store(0, MRG0)
- Store(0xB5, MRG1)
- Store(0, MRG2)
- Store(0x96, MSTI)
+ MRG0 = 0
+ MRG1 = 0xb5
+ MRG2 = 0
+ MSTI = 0x96
WACK()
- Store(0, MRG0)
- Store(1, MRG1)
- Store(0, MRG2)
- Store(0x98, MSTI)
+ MRG0 = 0
+ MRG1 = 1
+ MRG2 = 0
+ MSTI = 0x98
WACK()
- Store(0, MRG0)
- Store(0xB4, MRG1)
- Store(0, MRG2)
- Store(0x96, MSTI)
+ MRG0 = 0
+ MRG1 = 0xb4
+ MRG2 = 0
+ MSTI = 0x96
WACK()
}
//Wake
Method (IMWK, 0)
{
- Store(0, MRG0)
- Store(0xB5, MRG1)
- Store(0, MRG2)
- Store(0x96, MSTI)
+ MRG0 = 0
+ MRG1 = 0xb5
+ MRG2 = 0
+ MSTI = 0x96
WACK()
- Store(0, MRG0)
- Store(0, MRG1)
- Store(0, MRG2)
- Store(0x80, MSTI)
+ MRG0 = 0
+ MRG1 = 0
+ MRG2 = 0
+ MSTI = 0x80
WACK()
- Or(MRG2, 0x01, Local0)
+ Local0 = MRG2 | 0x01
- Store(0, MRG0)
- Store(0, MRG1)
- Store(Local0, MRG2)
- Store(0x81, MSTI)
+ MRG0 = 0
+ MRG1 = 0
+ MRG2 = Local0
+ MSTI = 0x81
WACK()
}
diff --git a/src/mainboard/biostar/a68n_5200/acpi/sleep.asl b/src/mainboard/biostar/a68n_5200/acpi/sleep.asl
index 47dd1460b1..fc26c306d9 100644
--- a/src/mainboard/biostar/a68n_5200/acpi/sleep.asl
+++ b/src/mainboard/biostar/a68n_5200/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)