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>
This commit is contained in:
Elyes HAOUAS 2020-10-08 09:16:29 +02:00 committed by Michael Niewöhner
parent c102bbd2ad
commit d4ed0e1c48
2 changed files with 45 additions and 45 deletions

View File

@ -19,9 +19,9 @@ IndexField(IMCX, IMCA, ByteAcc, NoLock, Preserve) {
Method(WACK, 0) Method(WACK, 0)
{ {
Store(0, Local0) Local0 = 0
While (LNotEqual(Local0, 0xFA)) { While (Local0 != 0xfa) {
Store(MRG0, Local0) Local0 = MRG0
Sleep(10) Sleep(10)
} }
} }
@ -29,69 +29,69 @@ Method(WACK, 0)
//Init //Init
Method (ITZE, 0) Method (ITZE, 0)
{ {
Store(0, MRG0) MRG0 = 0
Store(0xB5, MRG1) MRG1 = 0xb5
Store(0, MRG2) MRG2 = 0
Store(0x96, MSTI) MSTI = 0x96
WACK() WACK()
Store(0, MRG0) MRG0 = 0
Store(0, MRG1) MRG1 = 0
Store(0, MRG2) MRG2 = 0
Store(0x80, MSTI) MSTI = 0x80
WACK() WACK()
Or(MRG2, 0x01, Local0) Local0 = MRG2 | 0x01
Store(0, MRG0) MRG0 = 0
Store(0, MRG1) MRG1 = 0
Store(Local0, MRG2) MRG2 = Local0
Store(0x81, MSTI) MSTI = 0x81
WACK() WACK()
} }
//Sleep //Sleep
Method (IMSP, 0) Method (IMSP, 0)
{ {
Store(0, MRG0) MRG0 = 0
Store(0xB5, MRG1) MRG1 = 0xb5
Store(0, MRG2) MRG2 = 0
Store(0x96, MSTI) MSTI = 0x96
WACK() WACK()
Store(0, MRG0) MRG0 = 0
Store(1, MRG1) MRG1 = 1
Store(0, MRG2) MRG2 = 0
Store(0x98, MSTI) MSTI = 0x98
WACK() WACK()
Store(0, MRG0) MRG0 = 0
Store(0xB4, MRG1) MRG1 = 0xb4
Store(0, MRG2) MRG2 = 0
Store(0x96, MSTI) MSTI = 0x96
WACK() WACK()
} }
//Wake //Wake
Method (IMWK, 0) Method (IMWK, 0)
{ {
Store(0, MRG0) MRG0 = 0
Store(0xB5, MRG1) MRG1 = 0xb5
Store(0, MRG2) MRG2 = 0
Store(0x96, MSTI) MSTI = 0x96
WACK() WACK()
Store(0, MRG0) MRG0 = 0
Store(0, MRG1) MRG1 = 0
Store(0, MRG2) MRG2 = 0
Store(0x80, MSTI) MSTI = 0x80
WACK() WACK()
Or(MRG2, 0x01, Local0) Local0 = MRG2 | 0x01
Store(0, MRG0) MRG0 = 0
Store(0, MRG1) MRG1 = 0
Store(Local0, MRG2) MRG2 = Local0
Store(0x81, MSTI) MSTI = 0x81
WACK() WACK()
} }

View File

@ -30,9 +30,9 @@ Method(_PTS, 1) {
/* DBGO("\n") */ /* DBGO("\n") */
/* Clear wake status structure. */ /* Clear wake status structure. */
Store(0, Index(WKST,0)) WKST [0] = 0
Store(0, Index(WKST,1)) WKST [1] = 0
Store(7, UPWS) UPWS = 7
\_SB.APTS(Arg0) \_SB.APTS(Arg0)
} /* End Method(\_PTS) */ } /* End Method(\_PTS) */
@ -56,7 +56,7 @@ Method(\_WAK, 1) {
/* DBGO("From S") */ /* DBGO("From S") */
/* DBGO(Arg0) */ /* DBGO(Arg0) */
/* DBGO(" to S0\n") */ /* DBGO(" to S0\n") */
Store(1,USBS) USBS = 1
\_SB.AWAK(Arg0) \_SB.AWAK(Arg0)