blob: 9408c91ebaf63a39698c1163bfe2637b53b161a6 [file] [log] [blame]
Duncan Laurieafad0562013-01-14 08:50:03 -08001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2011 Google Inc.
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.
Duncan Laurieafad0562013-01-14 08:50:03 -080014 */
15
16#ifndef WTM2_THERMAL_H
17#define WTM2_THERMAL_H
18
19/* Fan is OFF */
20#define FAN4_THRESHOLD_OFF 0
21#define FAN4_THRESHOLD_ON 0
22#define FAN4_PWM 0x00
23
24/* Fan is at LOW speed */
25#define FAN3_THRESHOLD_OFF 48
26#define FAN3_THRESHOLD_ON 55
27#define FAN3_PWM 0x40
28
29/* Fan is at MEDIUM speed */
30#define FAN2_THRESHOLD_OFF 52
31#define FAN2_THRESHOLD_ON 64
32#define FAN2_PWM 0x80
33
34/* Fan is at HIGH speed */
35#define FAN1_THRESHOLD_OFF 60
36#define FAN1_THRESHOLD_ON 68
37#define FAN1_PWM 0xb0
38
39/* Fan is at FULL speed */
40#define FAN0_THRESHOLD_OFF 66
41#define FAN0_THRESHOLD_ON 78
42#define FAN0_PWM 0xff
43
44/* Temperature which OS will shutdown at */
45#define CRITICAL_TEMPERATURE 100
46
47/* Temperature which OS will throttle CPU */
48#define PASSIVE_TEMPERATURE 90
49
50/* Tj_max value for calculating PECI CPU temperature */
51#define MAX_TEMPERATURE 100
52
53#endif