aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/getac/p470/acpi/thermal.asl
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-09-20 11:57:14 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-11-04 09:41:17 +0000
commite28133a9948df5f98007219d54d1afa478318d56 (patch)
tree6ae5fcfb15c770803831b5faaa6711bce1e78b84 /src/mainboard/getac/p470/acpi/thermal.asl
parent50a44350ee5e0f3b34869a0b6804425efb2a906d (diff)
mb/getac/p470/acpi: Convert to ASL 2.0 syntax
Generated 'build/dsdt.dsl' are identical. Change-Id: Ifed93f4b0c360ec74f28926fb7cc9774ae03b8a6 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45555 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/mainboard/getac/p470/acpi/thermal.asl')
-rw-r--r--src/mainboard/getac/p470/acpi/thermal.asl18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mainboard/getac/p470/acpi/thermal.asl b/src/mainboard/getac/p470/acpi/thermal.asl
index 6e3dc22cf9..4e31ef3a93 100644
--- a/src/mainboard/getac/p470/acpi/thermal.asl
+++ b/src/mainboard/getac/p470/acpi/thermal.asl
@@ -17,11 +17,11 @@ Scope (\_TZ)
// Convert from °C to 1/10 Kelvin
Method(DEGR, 1, NotSerialized)
{
- Store(Arg0, Local0)
+ Local0 = Arg0
// 10ths of degrees
- Multiply(Local0, 10, Local0)
+ Local0 *= 10
// 0°C is 273.15 K, we need to round it.
- Add(Local0, 2732, Local0)
+ Local0 += 2732
Return(Local0)
}
@@ -35,24 +35,24 @@ Scope (\_TZ)
// Critical shutdown temperature
Method (_CRT, 0, Serialized)
{
- Store(\_SB.PCI0.LPCB.EC0.CRTT, Local0)
- Store(DEGR(Local0), Local0)
+ Local0 = \_SB.PCI0.LPCB.EC0.CRTT
+ Local0 = DEGR (Local0)
Return(Local0)
}
// CPU throttling start temperature
Method (_PSV, 0, Serialized)
{
- Store(\_SB.PCI0.LPCB.EC0.CTRO, Local0)
- Store(DEGR(Local0), Local0)
+ Local0 = \_SB.PCI0.LPCB.EC0.CTRO
+ Local0 = DEGR (Local0)
Return(Local0)
}
// Get DTS Temperature
Method (_TMP, 0, Serialized)
{
- Store(\_SB.PCI0.LPCB.EC0.CTMP, Local0)
- Store(DEGR(Local0), Local0)
+ Local0 = \_SB.PCI0.LPCB.EC0.CTMP
+ Local0 = DEGR (Local0)
Return(Local0)
}