coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
thermal.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef THERMAL_H
4 #define THERMAL_H
5 
6 /* Fan is OFF */
7 #define FAN4_THRESHOLD_OFF 0
8 #define FAN4_THRESHOLD_ON 0
9 #define FAN4_PWM 0x00
10 
11 /* Fan is at LOW speed */
12 #define FAN3_THRESHOLD_OFF 35
13 #define FAN3_THRESHOLD_ON 40
14 #define FAN3_PWM 0x88
15 
16 /* Fan is at MEDIUM speed */
17 #define FAN2_THRESHOLD_OFF 44
18 #define FAN2_THRESHOLD_ON 48
19 #define FAN2_PWM 0x94
20 
21 /* Fan is at HIGH speed */
22 #define FAN1_THRESHOLD_OFF 53
23 #define FAN1_THRESHOLD_ON 58
24 #define FAN1_PWM 0xb5
25 
26 /* Fan is at FULL speed */
27 #define FAN0_THRESHOLD_OFF 65
28 #define FAN0_THRESHOLD_ON 70
29 #define FAN0_PWM 0xc4
30 
31 /* Temperature which OS will shutdown at */
32 #define CRITICAL_TEMPERATURE 98
33 
34 /* Temperature which OS will throttle CPU */
35 #define PASSIVE_TEMPERATURE 90
36 
37 /* Tj_max value for calculating PECI CPU temperature */
38 #define MAX_TEMPERATURE 100
39 
40 #endif