mb/google/link: Convert to ASL 2.0 syntax

Generated 'dsdt.dsl' files are identical.

Change-Id: I7d4fc3acd82023b007d80638bcb71476330ef320
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46176
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Elyes HAOUAS 2020-10-08 09:33:16 +02:00 committed by Patrick Georgi
parent 3ed5c9e3cd
commit 527690c7bf
2 changed files with 32 additions and 32 deletions

View file

@ -7,7 +7,7 @@
Method(_PTS,1) Method(_PTS,1)
{ {
/* Disable WWAN */ /* Disable WWAN */
Store (Zero, GP36) GP36 = 0
} }
/* The _WAK method is called on system wakeup */ /* The _WAK method is called on system wakeup */
@ -15,16 +15,16 @@ Method(_PTS,1)
Method(_WAK,1) Method(_WAK,1)
{ {
/* Update AC status */ /* Update AC status */
Store (\_SB.PCI0.LPCB.EC0.ACEX, Local0) Local0 = \_SB.PCI0.LPCB.EC0.ACEX
if (LNotEqual (Local0, \PWRS)) { if (Local0 != \PWRS) {
Store (Local0, \PWRS) \PWRS = Local0
Notify (\_SB.PCI0.LPCB.EC0.AC, 0x80) Notify (\_SB.PCI0.LPCB.EC0.AC, 0x80)
} }
/* Update LID status */ /* Update LID status */
Store (\_SB.PCI0.LPCB.EC0.LIDS, Local0) Local0 = \_SB.PCI0.LPCB.EC0.LIDS
if (LNotEqual (Local0, \LIDS)) { if (Local0 != \LIDS) {
Store (Local0, \LIDS) \LIDS = Local0
Notify (\_SB.PCI0.LPCB.EC0.LID0, 0x80) Notify (\_SB.PCI0.LPCB.EC0.LID0, 0x80)
} }

View file

@ -15,10 +15,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)
} }
@ -32,33 +32,33 @@ Scope (\_TZ)
Method (_TMP, 0, Serialized) Method (_TMP, 0, Serialized)
{ {
// Get CPU Temperature from TIN9/PECI via EC // Get CPU Temperature from TIN9/PECI via EC
Store (\_SB.PCI0.LPCB.EC0.TIN9, Local0) Local0 = \_SB.PCI0.LPCB.EC0.TIN9
// Check for sensor not calibrated // Check for sensor not calibrated
If (LEqual (Local0, \_SB.PCI0.LPCB.EC0.TNCA)) { If (Local0 == \_SB.PCI0.LPCB.EC0.TNCA) {
Return (CTOK(0)) Return (CTOK(0))
} }
// Check for sensor not present // Check for sensor not present
If (LEqual (Local0, \_SB.PCI0.LPCB.EC0.TNPR)) { If (Local0 == \_SB.PCI0.LPCB.EC0.TNPR) {
Return (CTOK(0)) Return (CTOK(0))
} }
// Check for sensor not powered // Check for sensor not powered
If (LEqual (Local0, \_SB.PCI0.LPCB.EC0.TNOP)) { If (Local0 == \_SB.PCI0.LPCB.EC0.TNOP) {
Return (CTOK(0)) Return (CTOK(0))
} }
// Check for sensor bad reading // Check for sensor bad reading
If (LEqual (Local0, \_SB.PCI0.LPCB.EC0.TBAD)) { If (Local0 == \_SB.PCI0.LPCB.EC0.TBAD) {
Return (CTOK(0)) Return (CTOK(0))
} }
// Adjust by offset to get Kelvin // Adjust by offset to get Kelvin
Add (\_SB.PCI0.LPCB.EC0.TOFS, Local0, Local0) Local0 += \_SB.PCI0.LPCB.EC0.TOFS
// Convert to 1/10 Kelvin // Convert to 1/10 Kelvin
Multiply (Local0, 10, Local0) Local0 *= 10
Return (Local0) Return (Local0)
} }
} }
@ -77,10 +77,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)
} }
@ -106,34 +106,34 @@ Scope (\_TZ)
Method (_TMP, 0, Serialized) Method (_TMP, 0, Serialized)
{ {
// Get Temperature from TIN# set in NVS // Get Temperature from TIN# set in NVS
Store (\_SB.PCI0.LPCB.EC0.TINS (TMPS), Local0) Local0 = \_SB.PCI0.LPCB.EC0.TINS (TMPS)
// Check for sensor not present // Check for sensor not present
If (LEqual (Local0, \_SB.PCI0.LPCB.EC0.TNPR)) { If (Local0 == \_SB.PCI0.LPCB.EC0.TNPR) {
Return (CTOK(0)) Return (CTOK(0))
} }
// Check for sensor not powered // Check for sensor not powered
If (LEqual (Local0, \_SB.PCI0.LPCB.EC0.TNOP)) { If (Local0 == \_SB.PCI0.LPCB.EC0.TNOP) {
Return (CTOK(0)) Return (CTOK(0))
} }
// Check for sensor bad reading // Check for sensor bad reading
If (LEqual (Local0, \_SB.PCI0.LPCB.EC0.TBAD)) { If (Local0 == \_SB.PCI0.LPCB.EC0.TBAD) {
Return (CTOK(0)) Return (CTOK(0))
} }
// Adjust by offset to get Kelvin // Adjust by offset to get Kelvin
Add (\_SB.PCI0.LPCB.EC0.TOFS, Local0, Local0) Local0 += \_SB.PCI0.LPCB.EC0.TOFS
// Convert to 1/10 Kelvin // Convert to 1/10 Kelvin
Multiply (Local0, 10, Local0) Local0 *= 10
Return (Local0) Return (Local0)
} }
/* CTDP Down */ /* CTDP Down */
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))
@ -142,7 +142,7 @@ Scope (\_TZ)
/* CTDP Nominal */ /* CTDP Nominal */
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))
@ -155,19 +155,19 @@ Scope (\_TZ)
PowerResource (TNP0, 0, 0) PowerResource (TNP0, 0, 0)
{ {
Method (_STA) { Method (_STA) {
If (LLessEqual (\FLVL, 0)) { If (\FLVL <= 0) {
Return (One) Return (One)
} Else { } Else {
Return (Zero) Return (Zero)
} }
} }
Method (_ON) { Method (_ON) {
Store (0, \FLVL) \FLVL = 0
\_SB.PCI0.MCHC.STND () \_SB.PCI0.MCHC.STND ()
Notify (\_TZ.THRM, 0x81) Notify (\_TZ.THRM, 0x81)
} }
Method (_OFF) { Method (_OFF) {
Store (1, \FLVL) \FLVL = 1
\_SB.PCI0.MCHC.STDN () \_SB.PCI0.MCHC.STDN ()
Notify (\_TZ.THRM, 0x81) Notify (\_TZ.THRM, 0x81)
} }
@ -176,18 +176,18 @@ Scope (\_TZ)
PowerResource (TNP1, 0, 0) PowerResource (TNP1, 0, 0)
{ {
Method (_STA) { Method (_STA) {
If (LLessEqual (\FLVL, 1)) { If (\FLVL <= 1) {
Return (One) Return (One)
} Else { } Else {
Return (Zero) Return (Zero)
} }
} }
Method (_ON) { Method (_ON) {
Store (1, \FLVL) \FLVL = 1
Notify (\_TZ.THRM, 0x81) Notify (\_TZ.THRM, 0x81)
} }
Method (_OFF) { Method (_OFF) {
Store (1, \FLVL) \FLVL = 1
Notify (\_TZ.THRM, 0x81) Notify (\_TZ.THRM, 0x81)
} }
} }