HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/46075 )
Change subject: mb/aopen: Convert to ASL 2.0 syntax ......................................................................
mb/aopen: Convert to ASL 2.0 syntax
Change-Id: Ib473121acfc0e985d4c0debecffdc1efbd9c3d66 Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- M src/mainboard/aopen/dxplplusu/acpi/e7505_pri.asl M src/mainboard/aopen/dxplplusu/acpi/i82801db.asl 2 files changed, 26 insertions(+), 26 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/75/46075/1
diff --git a/src/mainboard/aopen/dxplplusu/acpi/e7505_pri.asl b/src/mainboard/aopen/dxplplusu/acpi/e7505_pri.asl index 7216d33..dd8689b 100644 --- a/src/mainboard/aopen/dxplplusu/acpi/e7505_pri.asl +++ b/src/mainboard/aopen/dxplplusu/acpi/e7505_pri.asl @@ -36,26 +36,26 @@ CreateQWordField (MSBF, _SB.MBRS._Y1C._MAX, MEMM) CreateQWordField (MSBF, _SB.MBRS._Y1C._LEN, LELM)
- And (_SB.PCI0.RLAR, 0x03FF, Local1) - Increment (Local1) - If (LGreater (Local1, 0x40)) + Local1 = _SB.PCI0.RLAR & 0x03FF + Local1++ + If (Local1 > 0x40) { - ShiftLeft (Local1, 0x1A, LELM) + LELM = Local1 << 26 }
CreateDWordField (MSBF, _SB.MBRS._Y1D._MIN, MS00) CreateDWordField (MSBF, _SB.MBRS._Y1D._MAX, MS01) CreateDWordField (MSBF, _SB.MBRS._Y1D._LEN, MEM2) - And (_SB.PCI0.TOLM, 0xF800, Local1) - ShiftRight (Local1, 0x04, Local1) - Decrement (Local1) - If (LGreater (Local1, 0x10)) + Local1 = _SB.PCI0.TOLM & 0xF800 + Local1 >>= 4 + Local1-- + If (Local1 > 0x10) { - Subtract (Local1, 0x0F, Local1) - Store (ShiftLeft (Local1, 0x14), MEM2) - Store (0x01000000, MS00) - Store (MS00, MS01) + Local1 -= 15 + MEM2 = Local1 << 20 + 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 20400c3..4c91abc 100644 --- a/src/mainboard/aopen/dxplplusu/acpi/i82801db.asl +++ b/src/mainboard/aopen/dxplplusu/acpi/i82801db.asl @@ -112,29 +112,29 @@ CreateWordField (MSBF, _SB_.PCI0.ICH0.PMIO._MAX, IOA2) CreateByteField (MSBF, _SB_.PCI0.ICH0.PMIO._LEN, IOAL)
- Store (PBAR, Local0) - If ( Land(Local0, 0x01) ) + Local0 = PBAR + If (Local0 & 0x01) { - And (Local0, 0xFFFE, Local0) - Store (Local0, IOA1) - Store (Local0, IOA2) - Store (0x80, IOAL) + Local0 &= 0xFFFE + 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) - If ( Land(Local0, 0x01) ) { - And (Local0, 0xFFFE, Local0) - Store (Local0, IOS1) - Store (Local0, IOS2) - Store (0x40, IOSL) + Local0 = GBAR + If (Local0 & 0x01) { + Local0 &= 0xFFFE + IOS1 = Local0 + IOS2 = Local0 + IOSL = 0x40 } Else { - Store (0x00, IOSL) + IOSL = 0x00 } Return (MSBF) }