mainboard/intel/avenuecity_crb: Update full IIO configuration
[coreboot2.git] / src / mainboard / roda / rv11 / acpi / thermal.asl
blob5f51253583ea6d2c1f49cf8be79283eb8d70537d
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 // Thermal Zone
5 External (\PPKG, MethodObj)
7 #define HAVE_THERMALZONE
8 Scope (\_TZ)
10         // Convert from Degrees C to 1/10 Kelvin for ACPI
11         Method (CTOK, 1) {
12                 // 10th of Degrees C
13                 Local0 = Arg0 * 10
15                 // Convert to Kelvin
16                 Local0 += 2732
18                 Return (Local0)
19         }
21         ThermalZone (THRM)
22         {
23                 Name (_TC1, 0x02)
24                 Name (_TC2, 0x05)
26                 // Thermal zone polling frequency: 10 seconds
27                 Name (_TZP, 100)
29                 // Thermal sampling period for passive cooling: 2 seconds
30                 Name (_TSP, 20)
32                 // Threshold for OS to shutdown
33                 Method (_CRT, 0, Serialized)
34                 {
35                         Return (CTOK (\TCRT))
36                 }
38                 // Threshold for passive cooling
39                 Method (_PSV, 0, Serialized)
40                 {
41                         Return (CTOK (\TPSV))
42                 }
44                 // Processors used for passive cooling
45                 Method (_PSL, 0, Serialized)
46                 {
47                         Return (\PPKG ())
48                 }
50                 Method (_TMP, 0, NotSerialized)  // _TMP: Temperature
51                 {
52                         Local0 = \_SB.PCI0.LPCB.EC0.CPUT
54                         If (Local0 >= 0x80)
55                         {
56                                 Printf ("-----> CPU Temperature (INVALID): %o", Local0)
57                                 Return (CTOK (0))
58                         }
60                         Printf ("-----> CPU Temperature: %o", Local0)
62                         Return (CTOK (Local0))
63                 }
64         }
66         ThermalZone (TZ00)
67         {
68                 // Thermal zone polling frequency: 10 seconds
69                 Name (_TZP, 100)
71                 // Thermal sampling period for passive cooling: 2 seconds
72                 Name (_TSP, 20)
74                 // Threshold for OS to shutdown
75                 Method (_CRT, 0, Serialized)
76                 {
77                         Return (CTOK (106))
78                 }
80                 Method (_TMP, 0, NotSerialized)  // _TMP: Temperature
81                 {
82                         Local0 = \_SB.PCI0.LPCB.EC0.LOCT
84                         If (Local0 >= 0x80)
85                         {
86                                 Printf ("-----> LOC Temperature (INVALID): %o", Local0)
87                                 Return (CTOK (0))
88                         }
90                         Printf ("-----> LOC Temperature: %o", Local0)
92                         Return (CTOK (Local0))
93                 }
94         }
96         ThermalZone (TZ01)
97         {
98                 // Thermal zone polling frequency: 10 seconds
99                 Name (_TZP, 100)
101                 // Thermal sampling period for passive cooling: 2 seconds
102                 Name (_TSP, 20)
104                 // Threshold for OS to shutdown
105                 Method (_CRT, 0, Serialized)
106                 {
107                         Return (CTOK (106))
108                 }
110                 Method (_TMP, 0, NotSerialized)  // _TMP: Temperature
111                 {
112                         Local0 = \_SB.PCI0.LPCB.EC0.OEMT
114                         If (Local0 >= 0x80)
115                         {
116                                 Printf ("-----> OEM Temperature (INVALID): %o", Local0)
117                                 Return (CTOK (0))
118                         }
120                         Printf ("-----> OEM Temperature: %o", Local0)
122                         Return (CTOK (Local0))
123                 }
124         }