summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-09-30 13:19:49 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2021-02-10 00:09:43 +0000
commita81c46180ce122db16bf172cd7531137f51f15a9 (patch)
tree014db548e325a2e7941a620439192efb02e9b41f /src
parent0f21996c1d58e412254035b674038ad384c64916 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/southbridge/amd/agesa/hudson/acpi/AmdImc.asl36
-rw-r--r--src/southbridge/amd/pi/hudson/acpi/AmdImc.asl36
2 files changed, 36 insertions, 36 deletions
diff --git a/src/southbridge/amd/agesa/hudson/acpi/AmdImc.asl b/src/southbridge/amd/agesa/hudson/acpi/AmdImc.asl
index e73ccddbfb..757b193c04 100644
--- a/src/southbridge/amd/agesa/hudson/acpi/AmdImc.asl
+++ b/src/southbridge/amd/agesa/hudson/acpi/AmdImc.asl
@@ -18,35 +18,35 @@ IndexField(IMCX, IMCA, ByteAcc, NoLock, Preserve) {
Method(WACK, 0)
{
- Store(0, Local0)
- Store(50, Local1)
- While (LAnd (LNotEqual(Local0, 0xFA), LGreater(Local1,0))) {
- Store(MRG0, Local0)
+ Local0 = 0
+ Local1 = 50
+ While ((Local0 != 0xFA) && (Local1 > 0)) {
+ Local0 = MRG0
Sleep(10)
- Decrement(Local1)
+ Local1--
}
}
//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()
}
diff --git a/src/southbridge/amd/pi/hudson/acpi/AmdImc.asl b/src/southbridge/amd/pi/hudson/acpi/AmdImc.asl
index e73ccddbfb..6fe5e33cb8 100644
--- a/src/southbridge/amd/pi/hudson/acpi/AmdImc.asl
+++ b/src/southbridge/amd/pi/hudson/acpi/AmdImc.asl
@@ -18,35 +18,35 @@ IndexField(IMCX, IMCA, ByteAcc, NoLock, Preserve) {
Method(WACK, 0)
{
- Store(0, Local0)
- Store(50, Local1)
- While (LAnd (LNotEqual(Local0, 0xFA), LGreater(Local1,0))) {
- Store(MRG0, Local0)
+ Local0 = 0
+ Local1 = 50
+ While ((Local0 != 0xfa) && (Local1 > 0)) {
+ Local0 = MRG0
Sleep(10)
- Decrement(Local1)
+ Local1--
}
}
//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()
}