cea3e8ea7beaecb33e50e1a7eb15ef066e443a8d
[coreboot.git] / src / mainboard / roda / rk886ex / 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
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; version 2 of
9  * 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.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
19  * MA 02110-1301 USA
20  */
21
22 // Thermal Zone
23
24 Scope (\_TZ)
25 {
26         ThermalZone (THRM)
27         {
28
29                 // FIXME these could/should be read from the
30                 // GNVS area, so they can be controlled by 
31                 // coreboot
32                 Name(TC1V, 0x04)
33                 Name(TC2V, 0x03)
34                 Name(TSPV, 0x64)
35
36                 // At which temperature should the OS start
37                 // active cooling?
38                 Method (_AC0, 0, Serialized)
39                 {
40                         Return (0xf5c) // Value for Rocky
41                 }
42
43                 // Method (_AC1, 0, Serialized)
44                 // {
45                 //      Return (0xf5c)
46                 // }
47
48                 // Critical shutdown temperature
49                 Method (_CRT, 0, Serialized)
50                 {
51                         Return (Add (0x0aac, 0x50)) // FIXME
52                 }
53
54                 // CPU throttling start temperature
55                 Method (_PSV, 0, Serialized)
56                 {
57                         Return (0xaaf) // FIXME
58                 }
59
60                 // Get DTS Temperature
61                 Method (_TMP, 0, Serialized)
62                 {
63                         Return (0xaac) // FIXME
64                 }
65
66                 // Processors used for active cooling
67                 Method (_PSL, 0, Serialized)
68                 {
69                         If (MPEN) {
70                                 Return (Package() {\_PR.CPU0, \_PR.CPU1})
71                         }
72                         Return (Package() {\_PR.CPU0})
73                 }
74
75                 // TC1 value for passive cooling
76                 Method (_TC1, 0, Serialized)
77                 {
78                         Return (TC1V)
79                 }
80
81                 // TC2 value for passive cooling
82                 Method (_TC2, 0, Serialized)
83                 {
84                         Return (TC2V)
85                 }
86
87                 // Sampling period for passive cooling
88                 Method (_TSP, 0, Serialized)
89                 {
90                         Return (TSPV)
91                 }
92
93
94         }
95 }
96