Since some people disapprove of white space cleanups mixed in regular commits
[coreboot.git] / src / mainboard / kontron / 986lcd-m / acpi / thermal.asl
1 /*
2  * This file is part of the coreboot project.
3  *
4  * Copyright (C) 2007-2009 coresystems GmbH
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; version 2 of the License.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19
20 // Thermal Zone
21
22 Scope (\_TZ)
23 {
24         ThermalZone (THRM)
25         {
26
27                 // FIXME these could/should be read from the
28                 // GNVS area, so they can be controlled by
29                 // coreboot
30                 Name(TC1V, 0x04)
31                 Name(TC2V, 0x03)
32                 Name(TSPV, 0x64)
33
34                 // At which temperature should the OS start
35                 // active cooling?
36                 Method (_AC0, 0, Serialized)
37                 {
38                         Return (0xf5c) // Value for Rocky
39                 }
40
41                 // Method (_AC1, 0, Serialized)
42                 // {
43                 //      Return (0xf5c)
44                 // }
45
46                 // Critical shutdown temperature
47                 Method (_CRT, 0, Serialized)
48                 {
49                         Return (Add (0x0aac, 0x50)) // FIXME
50                 }
51
52                 // CPU throttling start temperature
53                 Method (_PSV, 0, Serialized)
54                 {
55                         Return (0xaaf) // FIXME
56                 }
57
58                 // Get DTS Temperature
59                 Method (_TMP, 0, Serialized)
60                 {
61                         Return (0xaac) // FIXME
62                 }
63
64                 // Processors used for active cooling
65                 Method (_PSL, 0, Serialized)
66                 {
67                         If (MPEN) {
68                                 Return (Package() {\_PR.CPU1, \_PR.CPU2})
69                         }
70                         Return (Package() {\_PR.CPU1})
71                 }
72
73                 // TC1 value for passive cooling
74                 Method (_TC1, 0, Serialized)
75                 {
76                         Return (TC1V)
77                 }
78
79                 // TC2 value for passive cooling
80                 Method (_TC2, 0, Serialized)
81                 {
82                         Return (TC2V)
83                 }
84
85                 // Sampling period for passive cooling
86                 Method (_TSP, 0, Serialized)
87                 {
88                         Return (TSPV)
89                 }
90
91
92         }
93 }
94