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>
This commit is contained in:
parent
4da79a7f25
commit
c64c9cd5fa
|
@ -53,9 +53,9 @@ Device (MBRS)
|
||||||
If (Local1 > 0x10)
|
If (Local1 > 0x10)
|
||||||
{
|
{
|
||||||
Local1 -= 0x0F
|
Local1 -= 0x0F
|
||||||
Store (ShiftLeft (Local1, 0x14), MEM2)
|
MEM2 = ShiftLeft (Local1, 0x14)
|
||||||
Store (0x01000000, MS00)
|
MS00 = 0x01000000
|
||||||
Store (MS00, MS01)
|
MS01 = MS00
|
||||||
}
|
}
|
||||||
|
|
||||||
Return (MSBF)
|
Return (MSBF)
|
||||||
|
|
|
@ -112,29 +112,29 @@ Device (ICH0)
|
||||||
CreateWordField (MSBF, \_SB_.PCI0.ICH0.PMIO._MAX, IOA2)
|
CreateWordField (MSBF, \_SB_.PCI0.ICH0.PMIO._MAX, IOA2)
|
||||||
CreateByteField (MSBF, \_SB_.PCI0.ICH0.PMIO._LEN, IOAL)
|
CreateByteField (MSBF, \_SB_.PCI0.ICH0.PMIO._LEN, IOAL)
|
||||||
|
|
||||||
Store (PBAR, Local0)
|
Local0 = PBAR
|
||||||
If (Local0 && 1)
|
If (Local0 && 1)
|
||||||
{
|
{
|
||||||
And (Local0, 0xFFFE, Local0)
|
And (Local0, 0xFFFE, Local0)
|
||||||
Store (Local0, IOA1)
|
IOA1 = Local0
|
||||||
Store (Local0, IOA2)
|
IOA2 = Local0
|
||||||
Store (0x80, IOAL)
|
IOAL = 0x80
|
||||||
} Else {
|
} Else {
|
||||||
Store (0x00, IOAL)
|
IOAL = 0x00
|
||||||
}
|
}
|
||||||
|
|
||||||
CreateWordField (MSBF, \_SB_.PCI0.ICH0.GPIO._MIN, IOS1)
|
CreateWordField (MSBF, \_SB_.PCI0.ICH0.GPIO._MIN, IOS1)
|
||||||
CreateWordField (MSBF, \_SB_.PCI0.ICH0.GPIO._MAX, IOS2)
|
CreateWordField (MSBF, \_SB_.PCI0.ICH0.GPIO._MAX, IOS2)
|
||||||
CreateByteField (MSBF, \_SB_.PCI0.ICH0.GPIO._LEN, IOSL)
|
CreateByteField (MSBF, \_SB_.PCI0.ICH0.GPIO._LEN, IOSL)
|
||||||
|
|
||||||
Store (GBAR, Local0)
|
Local0 = GBAR
|
||||||
If (Local0 && 1) {
|
If (Local0 && 1) {
|
||||||
And (Local0, 0xFFFE, Local0)
|
And (Local0, 0xFFFE, Local0)
|
||||||
Store (Local0, IOS1)
|
IOS1 = Local0
|
||||||
Store (Local0, IOS2)
|
IOS2 = Local0
|
||||||
Store (0x40, IOSL)
|
IOSL = 0x40
|
||||||
} Else {
|
} Else {
|
||||||
Store (0x00, IOSL)
|
IOSL = 0x00
|
||||||
}
|
}
|
||||||
Return (MSBF)
|
Return (MSBF)
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,11 +58,11 @@ IndexField (INDX, DATA, ByteAcc, NoLock, Preserve)
|
||||||
|
|
||||||
Method (ECFG, 0, NotSerialized)
|
Method (ECFG, 0, NotSerialized)
|
||||||
{
|
{
|
||||||
Store (0x55, INDX)
|
INDX = 0x55
|
||||||
}
|
}
|
||||||
Method (XCFG, 0, NotSerialized)
|
Method (XCFG, 0, NotSerialized)
|
||||||
{
|
{
|
||||||
Store (0xAA, INDX)
|
INDX = 0xAA
|
||||||
}
|
}
|
||||||
|
|
||||||
Method (_CRS, 0, NotSerialized)
|
Method (_CRS, 0, NotSerialized)
|
||||||
|
@ -72,16 +72,16 @@ Method (_CRS, 0, NotSerialized)
|
||||||
CreateByteField (MSBF, \_SB.PCI0.ICH0.SMSC._Y1B._LEN, IOML)
|
CreateByteField (MSBF, \_SB.PCI0.ICH0.SMSC._Y1B._LEN, IOML)
|
||||||
|
|
||||||
ECFG ()
|
ECFG ()
|
||||||
Store (0x0A, \_SB.PCI0.ICH0.SMSC.LDN)
|
\_SB.PCI0.ICH0.SMSC.LDN = 0x0A
|
||||||
Store (0x00, IOM1)
|
IOM1 = 0x00
|
||||||
Store (0x00, IOM2)
|
IOM2 = 0x00
|
||||||
Or (\_SB.PCI0.ICH0.SMSC.IOAH, IOM1, IOM1)
|
Or (\_SB.PCI0.ICH0.SMSC.IOAH, IOM1, IOM1)
|
||||||
ShiftLeft (IOM1, 0x08, IOM1)
|
ShiftLeft (IOM1, 0x08, IOM1)
|
||||||
Or (\_SB.PCI0.ICH0.SMSC.IOAL, IOM1, IOM1)
|
Or (\_SB.PCI0.ICH0.SMSC.IOAL, IOM1, IOM1)
|
||||||
Store (IOM1, IOM2)
|
IOM2 = IOM1
|
||||||
If (IOM1 != 0)
|
If (IOM1 != 0)
|
||||||
{
|
{
|
||||||
Store (0x80, IOML)
|
IOML = 0x80
|
||||||
}
|
}
|
||||||
XCFG ()
|
XCFG ()
|
||||||
|
|
||||||
|
@ -92,48 +92,48 @@ Method (_CRS, 0, NotSerialized)
|
||||||
Method (_INI, 0, NotSerialized)
|
Method (_INI, 0, NotSerialized)
|
||||||
{
|
{
|
||||||
/* GPIO configuration */
|
/* GPIO configuration */
|
||||||
Store (0x00, GC10)
|
GC10 = 0x00
|
||||||
Store (0x81, GC11)
|
GC11 = 0x81
|
||||||
Store (0x00, GC17)
|
GC17 = 0x00
|
||||||
Store (0x0c, GC21)
|
GC21 = 0x0c
|
||||||
Store (0x00, GC22)
|
GC22 = 0x00
|
||||||
Store (0x04, GC27)
|
GC27 = 0x04
|
||||||
Store (0x04, GC30)
|
GC30 = 0x04
|
||||||
Store (0x01, GC31)
|
GC31 = 0x01
|
||||||
Store (0x01, GC32)
|
GC32 = 0x01
|
||||||
Store (0x01, GC33)
|
GC33 = 0x01
|
||||||
Store (0x01, GC34) /* GPI password jumper */
|
GC34 = 0x01 /* GPI password jumper */
|
||||||
Store (0x01, GC35) /* GPI scsi enable jumper */
|
GC35 = 0x01 /* GPI scsi enable jumper */
|
||||||
Store (0x01, GC42) /* GPI */
|
GC42 = 0x01 /* GPI */
|
||||||
Store (0x86, GC60) /* led 1 */
|
GC60 = 0x86 /* led 1 */
|
||||||
Store (0x81, GC61) /* led 2 ?? */
|
GC61 = 0x81 /* led 2 ?? */
|
||||||
|
|
||||||
/* GPIO initial output levels */
|
/* GPIO initial output levels */
|
||||||
Store (GP_1, Local0)
|
Local0 = GP_1
|
||||||
And( Local0, 0x7C, Local0)
|
And( Local0, 0x7C, Local0)
|
||||||
Or ( Local0, 0x81, Local0)
|
Or ( Local0, 0x81, Local0)
|
||||||
Store (Local0, GP_1)
|
GP_1 = Local0
|
||||||
|
|
||||||
Store (GP_2, Local0)
|
Local0 = GP_2
|
||||||
And( Local0, 0xFE, Local0)
|
And( Local0, 0xFE, Local0)
|
||||||
Or ( Local0, 0x00, Local0)
|
Or ( Local0, 0x00, Local0)
|
||||||
Store (Local0, GP_2)
|
GP_2 = Local0
|
||||||
|
|
||||||
Store (GP_3, Local0)
|
Local0 = GP_3
|
||||||
And( Local0, 0x7F, Local0)
|
And( Local0, 0x7F, Local0)
|
||||||
Or ( Local0, 0x80, Local0)
|
Or ( Local0, 0x80, Local0)
|
||||||
Store (Local0, GP_3)
|
GP_3 = Local0
|
||||||
|
|
||||||
Store (GP_4, Local0)
|
Local0 = GP_4
|
||||||
And( Local0, 0x7F, Local0)
|
And( Local0, 0x7F, Local0)
|
||||||
Or ( Local0, 0x00, Local0)
|
Or ( Local0, 0x00, Local0)
|
||||||
Store (Local0, GP_4)
|
GP_4 = Local0
|
||||||
|
|
||||||
/* Power Led */
|
/* Power Led */
|
||||||
Store (LED1, Local0)
|
Local0 = LED1
|
||||||
And( Local0, 0xfc, Local0)
|
And( Local0, 0xfc, Local0)
|
||||||
Or ( Local0, 0x01, Local0)
|
Or ( Local0, 0x01, Local0)
|
||||||
Store (Local0, LED1)
|
LED1 = Local0
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -141,21 +141,21 @@ Method (MLED, 1, NotSerialized)
|
||||||
{
|
{
|
||||||
If (Arg0 == 0x00)
|
If (Arg0 == 0x00)
|
||||||
{
|
{
|
||||||
Store (0x00, LED1)
|
LED1 = 0x00
|
||||||
}
|
}
|
||||||
|
|
||||||
If (Arg0 == 0x01 || Arg0 == 0x02)
|
If (Arg0 == 0x01 || Arg0 == 0x02)
|
||||||
{
|
{
|
||||||
Store (0x01, LED1)
|
LED1 = 0x01
|
||||||
}
|
}
|
||||||
|
|
||||||
If (Arg0 == 0x03)
|
If (Arg0 == 0x03)
|
||||||
{
|
{
|
||||||
Store (0x02, LED1)
|
LED1 = 0x02
|
||||||
}
|
}
|
||||||
|
|
||||||
If (Arg0 == 0x04 || Arg0 == 0x05)
|
If (Arg0 == 0x04 || Arg0 == 0x05)
|
||||||
{
|
{
|
||||||
Store (0x03, LED1)
|
LED1 = 0x03
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue