2 * This file is part of the coreboot project.
4 * Copyright (C) 2007-2010 coresystems GmbH
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
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.
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,
28 // TODO These could/should be read from the
29 // GNVS area, so they can be controlled by
36 // Convert from °C to 1/10 Kelvin
37 Method(DEGR, 1, NotSerialized)
41 Multiply(Local0, 10, Local0)
42 // 0°C is 273.15 K, we need to round it.
43 Add(Local0, 2732, Local0)
47 // At which temperature should the OS start
49 Method (_AC0, 0, Serialized)
51 Return (0xf5c) // Value for Rocky
54 // Critical shutdown temperature
55 Method (_CRT, 0, Serialized)
57 Store(\_SB.PCI0.LPCB.EC0.CRTT, Local0)
58 Store(DEGR(Local0), Local0)
62 // CPU throttling start temperature
63 Method (_PSV, 0, Serialized)
65 Store(\_SB.PCI0.LPCB.EC0.CTRO, Local0)
66 Store(DEGR(Local0), Local0)
70 // Get DTS Temperature
71 Method (_TMP, 0, Serialized)
73 Store(\_SB.PCI0.LPCB.EC0.CTMP, Local0)
74 Store(DEGR(Local0), Local0)
78 // Processors used for active cooling
79 Method (_PSL, 0, Serialized)
82 Return (Package() {\_PR.CPU0, \_PR.CPU1})
84 Return (Package() {\_PR.CPU0})
87 // TC1 value for passive cooling
88 Method (_TC1, 0, Serialized)
93 // TC2 value for passive cooling
94 Method (_TC2, 0, Serialized)
99 // Sampling period for passive cooling
100 Method (_TSP, 0, Serialized)