mb/roda/rv11: Convert to ASL 2.0 syntax
Generated build/dsdt.dsl files are identical. Change-Id: Id12c20dbe949c4badfe07578c6d202cd4cfb8191 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46211 Reviewed-by: Michael Niewöhner <foss@mniewoehner.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
24130ec42c
commit
f3985488ff
|
@ -10,12 +10,12 @@ Device (ALSD)
|
||||||
|
|
||||||
Method (_ALI, 0, NotSerialized) // _ALI: Ambient Light Illuminance
|
Method (_ALI, 0, NotSerialized) // _ALI: Ambient Light Illuminance
|
||||||
{
|
{
|
||||||
Store (\_SB.PCI0.LPCB.EC0.LUXH, Local0)
|
Local0 = \_SB.PCI0.LPCB.EC0.LUXH
|
||||||
Or (ShiftLeft (Local0, 8), \_SB.PCI0.LPCB.EC0.LUXL, Local0)
|
Local0 = (Local0 << 8) | \_SB.PCI0.LPCB.EC0.LUXL
|
||||||
Store ("-----> _ALI: ", Debug)
|
Debug = "-----> _ALI: "
|
||||||
Store (Local0, Debug)
|
Debug = Local0
|
||||||
Store (\_SB.PCI0.LPCB.EC0.LUXH, Debug)
|
Debug = \_SB.PCI0.LPCB.EC0.LUXH
|
||||||
Store (\_SB.PCI0.LPCB.EC0.LUXL, Debug)
|
Debug = \_SB.PCI0.LPCB.EC0.LUXL
|
||||||
Return (Local0)
|
Return (Local0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,10 +10,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)
|
||||||
}
|
}
|
||||||
|
@ -49,17 +49,17 @@ Scope (\_TZ)
|
||||||
|
|
||||||
Method (_TMP, 0, NotSerialized) // _TMP: Temperature
|
Method (_TMP, 0, NotSerialized) // _TMP: Temperature
|
||||||
{
|
{
|
||||||
Store (\_SB.PCI0.LPCB.EC0.CPUT, Local0)
|
Local0 = \_SB.PCI0.LPCB.EC0.CPUT
|
||||||
|
|
||||||
If (Local0 >= 0x80)
|
If (Local0 >= 0x80)
|
||||||
{
|
{
|
||||||
Store ("-----> CPU Temperature (INVALID): ", Debug)
|
Debug = "-----> CPU Temperature (INVALID): "
|
||||||
Store (Local0, Debug)
|
Debug = Local0
|
||||||
Return (CTOK (0))
|
Return (CTOK (0))
|
||||||
}
|
}
|
||||||
|
|
||||||
Store ("-----> CPU Temperature: ", Debug)
|
Debug = "-----> CPU Temperature: "
|
||||||
Store (Local0, Debug)
|
Debug = Local0
|
||||||
|
|
||||||
Return (CTOK (Local0))
|
Return (CTOK (Local0))
|
||||||
}
|
}
|
||||||
|
@ -82,17 +82,17 @@ Scope (\_TZ)
|
||||||
|
|
||||||
Method (_TMP, 0, NotSerialized) // _TMP: Temperature
|
Method (_TMP, 0, NotSerialized) // _TMP: Temperature
|
||||||
{
|
{
|
||||||
Store (\_SB.PCI0.LPCB.EC0.LOCT, Local0)
|
Local0 = \_SB.PCI0.LPCB.EC0.LOCT
|
||||||
|
|
||||||
If (Local0 >= 0x80)
|
If (Local0 >= 0x80)
|
||||||
{
|
{
|
||||||
Store ("-----> LOC Temperature (INVALID): ", Debug)
|
Debug = "-----> LOC Temperature (INVALID): "
|
||||||
Store (Local0, Debug)
|
Debug = Local0
|
||||||
Return (CTOK (0))
|
Return (CTOK (0))
|
||||||
}
|
}
|
||||||
|
|
||||||
Store ("-----> LOC Temperature: ", Debug)
|
Debug = "-----> LOC Temperature: "
|
||||||
Store (Local0, Debug)
|
Debug = Local0
|
||||||
|
|
||||||
Return (CTOK (Local0))
|
Return (CTOK (Local0))
|
||||||
}
|
}
|
||||||
|
@ -114,17 +114,17 @@ Scope (\_TZ)
|
||||||
|
|
||||||
Method (_TMP, 0, NotSerialized) // _TMP: Temperature
|
Method (_TMP, 0, NotSerialized) // _TMP: Temperature
|
||||||
{
|
{
|
||||||
Store (\_SB.PCI0.LPCB.EC0.OEMT, Local0)
|
Local0 = \_SB.PCI0.LPCB.EC0.OEMT
|
||||||
|
|
||||||
If (Local0 >= 0x80)
|
If (Local0 >= 0x80)
|
||||||
{
|
{
|
||||||
Store ("-----> OEM Temperature (INVALID): ", Debug)
|
Debug = "-----> OEM Temperature (INVALID): "
|
||||||
Store (Local0, Debug)
|
Debug = Local0
|
||||||
Return (CTOK (0))
|
Return (CTOK (0))
|
||||||
}
|
}
|
||||||
|
|
||||||
Store ("-----> OEM Temperature: ", Debug)
|
Debug = "-----> OEM Temperature: "
|
||||||
Store (Local0, Debug)
|
Debug = Local0
|
||||||
|
|
||||||
Return (CTOK (Local0))
|
Return (CTOK (Local0))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue