summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-12-12 04:59:05 +0100
committerFelix Singer <felixsinger@posteo.net>2022-12-14 00:49:20 +0000
commitc64c9cd5fa36d5265490cd61530391bdfdc967fc (patch)
treea73c28a4568c48ce3c885273b056b7de6cad45d9
parent4da79a7f25790d895ed1ea353dd481ece017a6a7 (diff)
mb/aopen/dxplplusu/acpi: Replace Store(a,b) with ASL 2.0 syntax
Replace `Store (a, b)` with `b = a`. Change-Id: I04f61df6b651058060b88e5f5679a0dd5270e66d Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70641 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
-rw-r--r--src/mainboard/aopen/dxplplusu/acpi/e7505_pri.asl6
-rw-r--r--src/mainboard/aopen/dxplplusu/acpi/i82801db.asl20
-rw-r--r--src/mainboard/aopen/dxplplusu/acpi/superio.asl72
3 files changed, 49 insertions, 49 deletions
diff --git a/src/mainboard/aopen/dxplplusu/acpi/e7505_pri.asl b/src/mainboard/aopen/dxplplusu/acpi/e7505_pri.asl
index aab327134a..353f5e7485 100644
--- a/src/mainboard/aopen/dxplplusu/acpi/e7505_pri.asl
+++ b/src/mainboard/aopen/dxplplusu/acpi/e7505_pri.asl
@@ -53,9 +53,9 @@ Device (MBRS)
If (Local1 > 0x10)
{
Local1 -= 0x0F
- Store (ShiftLeft (Local1, 0x14), MEM2)
- Store (0x01000000, MS00)
- Store (MS00, MS01)
+ MEM2 = ShiftLeft (Local1, 0x14)
+ MS00 = 0x01000000
+ MS01 = MS00
}
Return (MSBF)
diff --git a/src/mainboard/aopen/dxplplusu/acpi/i82801db.asl b/src/mainboard/aopen/dxplplusu/acpi/i82801db.asl
index 9b16070167..8fb24bf88a 100644
--- a/src/mainboard/aopen/dxplplusu/acpi/i82801db.asl
+++ b/src/mainboard/aopen/dxplplusu/acpi/i82801db.asl
@@ -112,29 +112,29 @@ Device (ICH0)
CreateWordField (MSBF, \_SB_.PCI0.ICH0.PMIO._MAX, IOA2)
CreateByteField (MSBF, \_SB_.PCI0.ICH0.PMIO._LEN, IOAL)
- Store (PBAR, Local0)
+ Local0 = PBAR
If (Local0 && 1)
{
And (Local0, 0xFFFE, Local0)
- Store (Local0, IOA1)
- Store (Local0, IOA2)
- Store (0x80, IOAL)
+ IOA1 = Local0
+ IOA2 = Local0
+ IOAL = 0x80
} Else {
- Store (0x00, IOAL)
+ IOAL = 0x00
}
CreateWordField (MSBF, \_SB_.PCI0.ICH0.GPIO._MIN, IOS1)
CreateWordField (MSBF, \_SB_.PCI0.ICH0.GPIO._MAX, IOS2)
CreateByteField (MSBF, \_SB_.PCI0.ICH0.GPIO._LEN, IOSL)
- Store (GBAR, Local0)
+ Local0 = GBAR
If (Local0 && 1) {
And (Local0, 0xFFFE, Local0)
- Store (Local0, IOS1)
- Store (Local0, IOS2)
- Store (0x40, IOSL)
+ IOS1 = Local0
+ IOS2 = Local0
+ IOSL = 0x40
} Else {
- Store (0x00, IOSL)
+ IOSL = 0x00
}
Return (MSBF)
}
diff --git a/src/mainboard/aopen/dxplplusu/acpi/superio.asl b/src/mainboard/aopen/dxplplusu/acpi/superio.asl
index 9f8c6c216a..1d1d2d81db 100644
--- a/src/mainboard/aopen/dxplplusu/acpi/superio.asl
+++ b/src/mainboard/aopen/dxplplusu/acpi/superio.asl
@@ -58,11 +58,11 @@ IndexField (INDX, DATA, ByteAcc, NoLock, Preserve)
Method (ECFG, 0, NotSerialized)
{
- Store (0x55, INDX)
+ INDX = 0x55
}
Method (XCFG, 0, NotSerialized)
{
- Store (0xAA, INDX)
+ INDX = 0xAA
}
Method (_CRS, 0, NotSerialized)
@@ -72,16 +72,16 @@ Method (_CRS, 0, NotSerialized)
CreateByteField (MSBF, \_SB.PCI0.ICH0.SMSC._Y1B._LEN, IOML)
ECFG ()
- Store (0x0A, \_SB.PCI0.ICH0.SMSC.LDN)
- Store (0x00, IOM1)
- Store (0x00, IOM2)
+ \_SB.PCI0.ICH0.SMSC.LDN = 0x0A
+ IOM1 = 0x00
+ IOM2 = 0x00
Or (\_SB.PCI0.ICH0.SMSC.IOAH, IOM1, IOM1)
ShiftLeft (IOM1, 0x08, IOM1)
Or (\_SB.PCI0.ICH0.SMSC.IOAL, IOM1, IOM1)
- Store (IOM1, IOM2)
+ IOM2 = IOM1
If (IOM1 != 0)
{
- Store (0x80, IOML)
+ IOML = 0x80
}
XCFG ()
@@ -92,48 +92,48 @@ Method (_CRS, 0, NotSerialized)
Method (_INI, 0, NotSerialized)
{
/* GPIO configuration */
- Store (0x00, GC10)
- Store (0x81, GC11)
- Store (0x00, GC17)
- Store (0x0c, GC21)
- Store (0x00, GC22)
- Store (0x04, GC27)
- Store (0x04, GC30)
- Store (0x01, GC31)
- Store (0x01, GC32)
- Store (0x01, GC33)
- Store (0x01, GC34) /* GPI password jumper */
- Store (0x01, GC35) /* GPI scsi enable jumper */
- Store (0x01, GC42) /* GPI */
- Store (0x86, GC60) /* led 1 */
- Store (0x81, GC61) /* led 2 ?? */
+ GC10 = 0x00
+ GC11 = 0x81
+ GC17 = 0x00
+ GC21 = 0x0c
+ GC22 = 0x00
+ GC27 = 0x04
+ GC30 = 0x04
+ GC31 = 0x01
+ GC32 = 0x01
+ GC33 = 0x01
+ GC34 = 0x01 /* GPI password jumper */
+ GC35 = 0x01 /* GPI scsi enable jumper */
+ GC42 = 0x01 /* GPI */
+ GC60 = 0x86 /* led 1 */
+ GC61 = 0x81 /* led 2 ?? */
/* GPIO initial output levels */
- Store (GP_1, Local0)
+ Local0 = GP_1
And( Local0, 0x7C, Local0)
Or ( Local0, 0x81, Local0)
- Store (Local0, GP_1)
+ GP_1 = Local0
- Store (GP_2, Local0)
+ Local0 = GP_2
And( Local0, 0xFE, Local0)
Or ( Local0, 0x00, Local0)
- Store (Local0, GP_2)
+ GP_2 = Local0
- Store (GP_3, Local0)
+ Local0 = GP_3
And( Local0, 0x7F, Local0)
Or ( Local0, 0x80, Local0)
- Store (Local0, GP_3)
+ GP_3 = Local0
- Store (GP_4, Local0)
+ Local0 = GP_4
And( Local0, 0x7F, Local0)
Or ( Local0, 0x00, Local0)
- Store (Local0, GP_4)
+ GP_4 = Local0
/* Power Led */
- Store (LED1, Local0)
+ Local0 = LED1
And( Local0, 0xfc, Local0)
Or ( Local0, 0x01, Local0)
- Store (Local0, LED1)
+ LED1 = Local0
}
@@ -141,21 +141,21 @@ Method (MLED, 1, NotSerialized)
{
If (Arg0 == 0x00)
{
- Store (0x00, LED1)
+ LED1 = 0x00
}
If (Arg0 == 0x01 || Arg0 == 0x02)
{
- Store (0x01, LED1)
+ LED1 = 0x01
}
If (Arg0 == 0x03)
{
- Store (0x02, LED1)
+ LED1 = 0x02
}
If (Arg0 == 0x04 || Arg0 == 0x05)
{
- Store (0x03, LED1)
+ LED1 = 0x03
}
}