1 /**************************************************************************;
4 ;* Intel Corporation - ACPI Reference Code for the Baytrail *;
5 ;* Family of Customer Reference Boards. *;
8 ;* Copyright (c) 1999 - 2017, Intel Corporation. All rights reserved *;
10 ; This program and the accompanying materials are licensed and made available under
11 ; the terms and conditions of the BSD License that accompanies this distribution.
12 ; The full text of the license may be found at
13 ; http://opensource.org/licenses/bsd-license.php.
15 ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
16 ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
20 ;**************************************************************************/
23 // THERMAL.ASL represents a Thermal Zone to be used for testing on the
24 // Customer Reference Boards.
26 External(\_SB.DPTF.CTOK, MethodObj)
31 // Thermal Zone 1 = DTS Thermal Zone.
35 // Return the temperature at which the OS must perform a Critcal
38 Method(_CRT,0,Serialized)
40 Return(Add(2732,Multiply(CRTT,10)))
43 // Notifies ASL Code the current cooling mode.
45 // 1 - Passive cooling
47 Method(_SCP,1,Serialized)
54 // Return the highest of the CPU temperatures to the OS.
59 // An Integer containing the current temperature of the thermal zone (in tenths of degrees Kelvin)
61 Method(_TMP,0,Serialized)
65 If(LGreater(DTS2, DTS1))
72 If (LEqual(And(Local0, 0x80), 0)) {
73 Return(Add(2732,Multiply(Local0,10)))
75 Add(Subtract(255, Local0), 1, Local0)
76 Return(Subtract(2732,Multiply(Local0,10)))
79 // Else return a static value if both EC and DTS are unavailable.
83 Return(3000) // (3000-2732)/10 = 26.8 degree C
87 // Return the Processor(s) used for Passive Cooling.
89 Method(_PSL,0,Serialized)
93 // CMP - Throttling controls all four logical CPUs.
94 Return(Package() {\_PR.CPU0,\_PR.CPU1,\_PR.CPU2,\_PR.CPU3})
99 // CMP - Throttling controls both CPUs.
101 Return(Package() {\_PR.CPU0,\_PR.CPU1})
104 Return(Package() {\_PR.CPU0})
107 // Returns the temperature at which the OS initiates CPU throttling.
109 Method(_PSV,0,Serialized)
111 Return(Add(2732,Multiply(PSVT,10)))
114 // Returns TC1 value used in the passive cooling formula.
116 Method(_TC1,0,Serialized)
121 // Returns TC2 value used in the passive cooling formula.
123 Method(_TC2,0,Serialized)
128 // Returns the sampling period used in the passive cooling formula.
130 Method(_TSP,0,Serialized)
135 // Returns Hot Temperature
137 Method(_HOT,0,Serialized)
139 Subtract(CRTT, 5, Local0)
140 Return(Add(2732,Multiply(Local0,10)))