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 ; SPDX-License-Identifier: BSD-2-Clause-Patent
14 ;**************************************************************************/
17 // THERMAL.ASL represents a Thermal Zone to be used for testing on the
18 // Customer Reference Boards.
20 External(\_SB.DPTF.CTOK, MethodObj)
25 // Thermal Zone 1 = DTS Thermal Zone.
29 // Return the temperature at which the OS must perform a Critcal
32 Method(_CRT,0,Serialized)
34 Return(Add(2732,Multiply(CRTT,10)))
37 // Notifies ASL Code the current cooling mode.
39 // 1 - Passive cooling
41 Method(_SCP,1,Serialized)
48 // Return the highest of the CPU temperatures to the OS.
53 // An Integer containing the current temperature of the thermal zone (in tenths of degrees Kelvin)
55 Method(_TMP,0,Serialized)
59 If(LGreater(DTS2, DTS1))
66 If (LEqual(And(Local0, 0x80), 0)) {
67 Return(Add(2732,Multiply(Local0,10)))
69 Add(Subtract(255, Local0), 1, Local0)
70 Return(Subtract(2732,Multiply(Local0,10)))
73 // Else return a static value if both EC and DTS are unavailable.
77 Return(3000) // (3000-2732)/10 = 26.8 degree C
81 // Return the Processor(s) used for Passive Cooling.
83 Method(_PSL,0,Serialized)
87 // CMP - Throttling controls all four logical CPUs.
88 Return(Package() {\_PR.CPU0,\_PR.CPU1,\_PR.CPU2,\_PR.CPU3})
93 // CMP - Throttling controls both CPUs.
95 Return(Package() {\_PR.CPU0,\_PR.CPU1})
98 Return(Package() {\_PR.CPU0})
101 // Returns the temperature at which the OS initiates CPU throttling.
103 Method(_PSV,0,Serialized)
105 Return(Add(2732,Multiply(PSVT,10)))
108 // Returns TC1 value used in the passive cooling formula.
110 Method(_TC1,0,Serialized)
115 // Returns TC2 value used in the passive cooling formula.
117 Method(_TC2,0,Serialized)
122 // Returns the sampling period used in the passive cooling formula.
124 Method(_TSP,0,Serialized)
129 // Returns Hot Temperature
131 Method(_HOT,0,Serialized)
133 Subtract(CRTT, 5, Local0)
134 Return(Add(2732,Multiply(Local0,10)))