sb/amd/{agesa,pi}hudson/acpi: Convert 'AmdImc.asl' to ASL 2.0 syntax

Change-Id: Ica6998026031e1b3d7286ce74a2334237d29ac74
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/45864
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
Elyes HAOUAS 2020-09-30 13:19:49 +02:00 committed by Kyösti Mälkki
parent 0f21996c1d
commit a81c46180c
2 changed files with 36 additions and 36 deletions

View File

@ -18,35 +18,35 @@ IndexField(IMCX, IMCA, ByteAcc, NoLock, Preserve) {
Method(WACK, 0) Method(WACK, 0)
{ {
Store(0, Local0) Local0 = 0
Store(50, Local1) Local1 = 50
While (LAnd (LNotEqual(Local0, 0xFA), LGreater(Local1,0))) { While ((Local0 != 0xFA) && (Local1 > 0)) {
Store(MRG0, Local0) Local0 = MRG0
Sleep(10) Sleep(10)
Decrement(Local1) Local1--
} }
} }
//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()
} }

View File

@ -18,35 +18,35 @@ IndexField(IMCX, IMCA, ByteAcc, NoLock, Preserve) {
Method(WACK, 0) Method(WACK, 0)
{ {
Store(0, Local0) Local0 = 0
Store(50, Local1) Local1 = 50
While (LAnd (LNotEqual(Local0, 0xFA), LGreater(Local1,0))) { While ((Local0 != 0xfa) && (Local1 > 0)) {
Store(MRG0, Local0) Local0 = MRG0
Sleep(10) Sleep(10)
Decrement(Local1) Local1--
} }
} }
//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()
} }