blob: 0bdef147f5088966239ae74b61ec57451874fc20 [file] [log] [blame]
Nico Huberefe1fed2013-04-29 18:00:57 +02001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2011 The Chromium OS Authors. All rights reserved.
5 * Copyright (C) 2013 secunet Security Networks AG
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2 of the License.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
Nico Huberefe1fed2013-04-29 18:00:57 +020015 */
16
17// Thermal Zone
18
19Scope (\_TZ)
20{
21 ThermalZone (THRM)
22 {
23 Name (_TC1, 0x02)
24 Name (_TC2, 0x05)
25
26 // Thermal zone polling frequency: 10 seconds
27 Name (_TZP, 100)
28
29 // Thermal sampling period for passive cooling: 2 seconds
30 Name (_TSP, 20)
31
32 // Convert from Degrees C to 1/10 Kelvin for ACPI
33 Method (CTOK, 1) {
34 // 10th of Degrees C
35 Multiply (Arg0, 10, Local0)
36
37 // Convert to Kelvin
38 Add (Local0, 2732, Local0)
39
40 Return (Local0)
41 }
42
43 // Threshold for OS to shutdown
44 Method (_CRT, 0, Serialized)
45 {
46 Return (CTOK (\TCRT))
47 }
48
49 // Threshold for passive cooling
50 Method (_PSV, 0, Serialized)
51 {
52 Return (CTOK (\TPSV))
53 }
54
55 // Processors used for passive cooling
56 Method (_PSL, 0, Serialized)
57 {
58 Return (\PPKG ())
59 }
60
61 Method (_TMP, 0, Serialized)
62 {
63 // Return CPU Temperature from EC
64 Return (\_SB.PCI0.LPCB.EC0.PM1.CTK ())
65 }
66
67// The EC does all fan control. There is no Active Cooling Fan control (_ACx).
68 }
69}