sb/amd/agesa/hudson/acpi/fch.asl: Convert to ASL 2.0

Change-Id: I8903450b505701e1fd62c1a70b896a4dfb37d5a1
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50325
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
Elyes HAOUAS 2021-02-05 20:11:31 +01:00 committed by Kyösti Mälkki
parent 01ae7e7de6
commit 3759e26c87
1 changed files with 11 additions and 11 deletions

View File

@ -7,13 +7,13 @@
Method(_OSC,4) Method(_OSC,4)
{ {
/* Check for proper PCI/PCIe UUID */ /* Check for proper PCI/PCIe UUID */
If(LEqual(Arg0,ToUUID("33DB4D5B-1FF7-401C-9657-7441C03DD766"))) If(Arg0 == ToUUID("33DB4D5B-1FF7-401C-9657-7441C03DD766"))
{ {
/* Let OS control everything */ /* Let OS control everything */
Return (Arg3) Return (Arg3)
} Else { } Else {
CreateDWordField(Arg3,0,CDW1) CreateDWordField(Arg3,0,CDW1)
Or(CDW1,4,CDW1) // Unrecognized UUID CDW1 |= 4 // Unrecognized UUID
Return(Arg3) Return(Arg3)
} }
} }
@ -124,10 +124,10 @@ Method(_CRS, 0) {
* 32bit (0x00000000 - TOM1) will wrap and give the same * 32bit (0x00000000 - TOM1) will wrap and give the same
* result as 64bit (0x100000000 - TOM1). * result as 64bit (0x100000000 - TOM1).
*/ */
Store(TOM1, MM1B) MM1B = TOM1
ShiftLeft(0x10000000, 4, Local0) Local0 = 0x10000000 << 4
Subtract(Local0, TOM1, Local0) Local0 -= TOM1
Store(Local0, MM1L) MM1L = Local0
Return(CRES) /* note to change the Name buffer */ Return(CRES) /* note to change the Name buffer */
} /* end of Method(_SB.PCI0._CRS) */ } /* end of Method(_SB.PCI0._CRS) */
@ -170,20 +170,20 @@ Method(_INI, 0) {
Method(OSFL, 0){ Method(OSFL, 0){
if (LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */ if (OSVR != Ones) {Return(OSVR)} /* OS version was already detected */
if (CondRefOf(\_OSI)) if (CondRefOf(\_OSI))
{ {
Store(1, OSVR) /* Assume some form of XP */ OSVR = 1 /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSVR) OSVR = 2
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSVR) /* Linux */ OSVR = 3 /* Linux */
} Else { } Else {
Store(4, OSVR) /* Gotta be WinCE */ OSVR = 4 /* Gotta be WinCE */
} }
} }
Return(OSVR) Return(OSVR)