sb/intel/i82801gx/acpi: Convert *.asl to ASL 2.0 syntax

Also remove extra empty lines.
It builds same binary for apple/macbook21 using BUILD_TIMELESS=1

Change-Id: Ibf349bb70b1fee31bfcdb4c87ffa5b4b8359e289
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/45275
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Elyes HAOUAS 2020-09-10 21:06:40 +02:00 committed by Patrick Georgi
parent 30a9475192
commit 08b5ef4834
2 changed files with 15 additions and 19 deletions

View File

@ -73,7 +73,7 @@ Device (LPCB)
If (HPTE) { If (HPTE) {
// Note: Ancient versions of Windows don't want // Note: Ancient versions of Windows don't want
// to see the HPET in order to work right // to see the HPET in order to work right
If (LGreaterEqual(OSYS, 2001)) { If (OSYS >= 2001) {
Return (0xf) // Enable and show device Return (0xf) // Enable and show device
} Else { } Else {
Return (0xb) // Enable and don't show device Return (0xb) // Enable and don't show device
@ -87,16 +87,16 @@ Device (LPCB)
{ {
If (HPTE) { If (HPTE) {
CreateDWordField(BUF0, \_SB.PCI0.LPCB.HPET.FED0._BAS, HPT0) CreateDWordField(BUF0, \_SB.PCI0.LPCB.HPET.FED0._BAS, HPT0)
If (Lequal(HPAS, 1)) { If (HPAS == 1) {
Add(CONFIG_HPET_ADDRESS, 0x1000, HPT0) HPT0 = CONFIG_HPET_ADDRESS + 0x1000
} }
If (Lequal(HPAS, 2)) { If (HPAS == 2) {
Add(CONFIG_HPET_ADDRESS, 0x2000, HPT0) HPT0 = CONFIG_HPET_ADDRESS + 0x2000
} }
If (Lequal(HPAS, 3)) { If (HPAS == 3) {
Add(CONFIG_HPET_ADDRESS, 0x3000, HPT0) HPT0 = CONFIG_HPET_ADDRESS + 0x3000
} }
} }

View File

@ -21,9 +21,9 @@ Device (USB1)
{ {
// USB Controller can wake OS from Sleep State // USB Controller can wake OS from Sleep State
If (Arg0) { If (Arg0) {
Store (3, U1WE) U1WE = 3
} Else { } Else {
Store (0, U1WE) U1WE = 0
} }
} }
@ -40,7 +40,6 @@ Device (USB1)
} }
} }
// USB Controller 0:1d.1 // USB Controller 0:1d.1
Device (USB2) Device (USB2)
@ -60,9 +59,9 @@ Device (USB2)
{ {
// USB Controller can wake OS from Sleep State // USB Controller can wake OS from Sleep State
If (Arg0) { If (Arg0) {
Store (3, U2WE) U2WE = 3
} Else { } Else {
Store (0, U2WE) U2WE = 0
} }
} }
@ -80,7 +79,6 @@ Device (USB2)
} }
// USB Controller 0:1d.2 // USB Controller 0:1d.2
Device (USB3) Device (USB3)
@ -100,9 +98,9 @@ Device (USB3)
{ {
// USB Controller can wake OS from Sleep State // USB Controller can wake OS from Sleep State
If (Arg0) { If (Arg0) {
Store (3, U3WE) U3WE = 3
} Else { } Else {
Store (0, U3WE) U3WE = 0
} }
} }
@ -120,7 +118,6 @@ Device (USB3)
} }
// USB Controller 0:1d.3 // USB Controller 0:1d.3
Device (USB4) Device (USB4)
@ -140,9 +137,9 @@ Device (USB4)
{ {
// USB Controller can wake OS from Sleep State // USB Controller can wake OS from Sleep State
If (Arg0) { If (Arg0) {
Store (3, U4WE) U4WE = 3
} Else { } Else {
Store (0, U4WE) U4WE = 0
} }
} }
@ -160,7 +157,6 @@ Device (USB4)
} }
// EHCI Controller 0:1d.7 // EHCI Controller 0:1d.7
Device (EHC1) Device (EHC1)