blob: 3e8a7da595e48d71019baf8bdf400a5572d5bc7e [file] [log] [blame]
Patrick Georgi04746fc2015-06-05 18:53:43 +02001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2014 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.
Patrick Georgi04746fc2015-06-05 18:53:43 +020014 */
15
16#ifndef THERMAL_H
17#define THERMAL_H
18
19#define TEMPERATURE_SENSOR_ID 0 /* PECI */
20
21/* Fan is OFF */
22#define FAN4_THRESHOLD_OFF 0
23#define FAN4_THRESHOLD_ON 0
24#define FAN4_PWM 0x00
25
26/* Fan is at LOW speed */
27#define FAN3_THRESHOLD_OFF 50
28#define FAN3_THRESHOLD_ON 55
29#define FAN3_PWM 0x76
30
31/* Fan is at MEDIUM speed */
32#define FAN2_THRESHOLD_OFF 59
33#define FAN2_THRESHOLD_ON 65
34#define FAN2_PWM 0x98
35
36/* Fan is at HIGH speed */
37#define FAN1_THRESHOLD_OFF 68
38#define FAN1_THRESHOLD_ON 75
39#define FAN1_PWM 0xbf
40
41/* Fan is at FULL speed */
42#define FAN0_THRESHOLD_OFF 80
43#define FAN0_THRESHOLD_ON 86
44#define FAN0_PWM 0xdc
45
46/* Temperature which OS will shutdown at */
47#define CRITICAL_TEMPERATURE 98
48
49/* Temperature which OS will throttle CPU */
50#define PASSIVE_TEMPERATURE 95
51
52/* Tj_max value for calculating PECI CPU temperature */
53#define MAX_TEMPERATURE 105
54
55#endif