tree: drop last paragraph of GPL copyright header
[coreboot.git] / src / mainboard / google / jecht / thermal.h
blob3e8a7da595e48d71019baf8bdf400a5572d5bc7e
1 /*
2 * This file is part of the coreboot project.
4 * Copyright (C) 2014 Google Inc.
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.
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.
16 #ifndef THERMAL_H
17 #define THERMAL_H
19 #define TEMPERATURE_SENSOR_ID 0 /* PECI */
21 /* Fan is OFF */
22 #define FAN4_THRESHOLD_OFF 0
23 #define FAN4_THRESHOLD_ON 0
24 #define FAN4_PWM 0x00
26 /* Fan is at LOW speed */
27 #define FAN3_THRESHOLD_OFF 50
28 #define FAN3_THRESHOLD_ON 55
29 #define FAN3_PWM 0x76
31 /* Fan is at MEDIUM speed */
32 #define FAN2_THRESHOLD_OFF 59
33 #define FAN2_THRESHOLD_ON 65
34 #define FAN2_PWM 0x98
36 /* Fan is at HIGH speed */
37 #define FAN1_THRESHOLD_OFF 68
38 #define FAN1_THRESHOLD_ON 75
39 #define FAN1_PWM 0xbf
41 /* Fan is at FULL speed */
42 #define FAN0_THRESHOLD_OFF 80
43 #define FAN0_THRESHOLD_ON 86
44 #define FAN0_PWM 0xdc
46 /* Temperature which OS will shutdown at */
47 #define CRITICAL_TEMPERATURE 98
49 /* Temperature which OS will throttle CPU */
50 #define PASSIVE_TEMPERATURE 95
52 /* Tj_max value for calculating PECI CPU temperature */
53 #define MAX_TEMPERATURE 105
55 #endif