mb/samsung/lumpy: Convert to ASL 2.0 syntax

Generated 'build/dsdt.dsl' files are identical.

Change-Id: I7ad79a31142af8ae1b62497ade0b4ba7bac3a93c
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46214
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Elyes HAOUAS 2020-10-08 10:10:17 +02:00 committed by Patrick Georgi
parent b29769a391
commit 0be783b30e
3 changed files with 33 additions and 33 deletions

View File

@ -8,7 +8,7 @@ Scope (\_SB) {
Name(_HID, EisaId("PNP0C0D")) Name(_HID, EisaId("PNP0C0D"))
Method(_LID, 0) Method(_LID, 0)
{ {
Store (\_SB.PCI0.LPCB.EC0.LIDS, \LIDS) \LIDS = \_SB.PCI0.LPCB.EC0.LIDS
Return (\LIDS) Return (\LIDS)
} }

View File

@ -6,43 +6,43 @@
Method(_PTS,1) Method(_PTS,1)
{ {
Store (Zero, GP35) // Disable WLAN GP35 = 0 // Disable WLAN
Store (Zero, GP38) // Disable WWAN GP38 = 0 // Disable WWAN
If (S33G) { If (S33G) {
Store (Zero, GP43) // Enable HSPA GP43 = 0 // Enable HSPA
} Else { } Else {
Store (One, GP43) // Disable HSPA GP43 = 1 // Disable HSPA
} }
If (LEqual (Arg0, 3)) { If (Arg0 == 3) {
// NVS has a flag to determine USB policy in S3 // NVS has a flag to determine USB policy in S3
If (S3U0) { If (S3U0) {
Store (One, GP47) // Enable USB0 GP47 = 1 // Enable USB0
} Else { } Else {
Store (Zero, GP47) // Disable USB0 GP47 = 0 // Disable USB0
} }
// NVS has a flag to determine USB policy in S3 // NVS has a flag to determine USB policy in S3
If (S3U1) { If (S3U1) {
Store (One, GP56) // Enable USB1 GP56 = 1 // Enable USB1
} Else { } Else {
Store (Zero, GP56) // Disable USB1 GP56 = 0 // Disable USB1
} }
} }
If (LEqual (Arg0, 5)) { If (Arg0 == 5) {
// NVS has a flag to determine USB policy in S5 // NVS has a flag to determine USB policy in S5
If (S5U0) { If (S5U0) {
Store (One, GP47) // Enable USB0 GP47 = 1 // Enable USB0
} Else { } Else {
Store (Zero, GP47) // Disable USB0 GP47 = 0 // Disable USB0
} }
// NVS has a flag to determine USB policy in S5 // NVS has a flag to determine USB policy in S5
If (S5U1) { If (S5U1) {
Store (One, GP56) // Enable USB1 GP56 = 1 // Enable USB1
} Else { } Else {
Store (Zero, GP56) // Disable USB1 GP56 = 0 // Disable USB1
} }
} }
} }
@ -52,10 +52,10 @@ Method(_PTS,1)
Method(_WAK,1) Method(_WAK,1)
{ {
/* Update in case state changed while asleep */ /* Update in case state changed while asleep */
Store (\_SB.PCI0.LPCB.EC0.ACEX, \PWRS) \PWRS = \_SB.PCI0.LPCB.EC0.ACEX
/* Enable OS control of fan */ /* Enable OS control of fan */
Store (One, \_SB.PCI0.LPCB.EC0.FCOS) \_SB.PCI0.LPCB.EC0.FCOS = 1
Return(Package(){0,0}) Return(Package(){0,0})
} }

View File

@ -26,10 +26,10 @@ Scope (\_TZ)
// Convert from Degrees C to 1/10 Kelvin for ACPI // Convert from Degrees C to 1/10 Kelvin for ACPI
Method (CTOK, 1) { Method (CTOK, 1) {
// 10th of Degrees C // 10th of Degrees C
Multiply (Arg0, 10, Local0) Local0 = Arg0 * 10
// Convert to Kelvin // Convert to Kelvin
Add (Local0, 2732, Local0) Local0 += 2732
Return (Local0) Return (Local0)
} }
@ -55,27 +55,27 @@ Scope (\_TZ)
Method (_TMP, 0, Serialized) Method (_TMP, 0, Serialized)
{ {
// Get CPU Temperature from the Embedded Controller // Get CPU Temperature from the Embedded Controller
Store (\_SB.PCI0.LPCB.EC0.CPUT, Local0) Local0 = \_SB.PCI0.LPCB.EC0.CPUT
// Re-read from EC if the temperature is very high to // Re-read from EC if the temperature is very high to
// avoid OS shutdown if we got a bad reading. // avoid OS shutdown if we got a bad reading.
If (LGreaterEqual (Local0, \TCRT)) { If (Local0 >= \TCRT) {
Store (\_SB.PCI0.LPCB.EC0.CPUT, Local0) Local0 = \_SB.PCI0.LPCB.EC0.CPUT
If (LGreaterEqual (Local0, \TCRT)) { If (Local0 >= \TCRT) {
// Check if this is an early read // Check if this is an early read
If (LLess (CRDC, IRDC)) { If (CRDC < IRDC) {
Store (0, Local0) Local0 = 0
} }
} }
} }
// Keep track of first few reads by the OS // Keep track of first few reads by the OS
If (LLess (CRDC, IRDC)) { If (CRDC < IRDC) {
Increment (CRDC) CRDC++
} }
// Invalid reading, ensure fan is spinning // Invalid reading, ensure fan is spinning
If (LGreaterEqual (Local0, 0x80)) { If (Local0 >= 0x80) {
Return (CTOK (\F4ON)) Return (CTOK (\F4ON))
} }
@ -83,7 +83,7 @@ Scope (\_TZ)
} }
Method (_AC0) { Method (_AC0) {
If (LLessEqual (\FLVL, 0)) { If (\FLVL <= 0) {
Return (CTOK (\F0OF)) Return (CTOK (\F0OF))
} Else { } Else {
Return (CTOK (\F0ON)) Return (CTOK (\F0ON))
@ -91,7 +91,7 @@ Scope (\_TZ)
} }
Method (_AC1) { Method (_AC1) {
If (LLessEqual (\FLVL, 1)) { If (\FLVL <= 1) {
Return (CTOK (\F1OF)) Return (CTOK (\F1OF))
} Else { } Else {
Return (CTOK (\F1ON)) Return (CTOK (\F1ON))
@ -99,7 +99,7 @@ Scope (\_TZ)
} }
Method (_AC2) { Method (_AC2) {
If (LLessEqual (\FLVL, 2)) { If (\FLVL <= 2) {
Return (CTOK (\F2OF)) Return (CTOK (\F2OF))
} Else { } Else {
Return (CTOK (\F2ON)) Return (CTOK (\F2ON))
@ -107,7 +107,7 @@ Scope (\_TZ)
} }
Method (_AC3) { Method (_AC3) {
If (LLessEqual (\FLVL, 3)) { If (\FLVL <= 3) {
Return (CTOK (\F3OF)) Return (CTOK (\F3OF))
} Else { } Else {
Return (CTOK (\F3ON)) Return (CTOK (\F3ON))
@ -115,7 +115,7 @@ Scope (\_TZ)
} }
Method (_AC4) { Method (_AC4) {
If (LLessEqual (\FLVL, 4)) { If (\FLVL <= 4) {
Return (CTOK (\F4OF)) Return (CTOK (\F4OF))
} Else { } Else {
Return (CTOK (\F4ON)) Return (CTOK (\F4ON))