1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef STUMPY_THERMAL_H
4 #define STUMPY_THERMAL_H
7 #define FAN4_THRESHOLD_OFF 0
8 #define FAN4_THRESHOLD_ON 0
11 /* Fan is at LOW speed */
12 #define FAN3_THRESHOLD_OFF 48
13 #define FAN3_THRESHOLD_ON 55
16 /* Fan is at MEDIUM speed */
17 #define FAN2_THRESHOLD_OFF 52
18 #define FAN2_THRESHOLD_ON 64
21 /* Fan is at HIGH speed */
22 #define FAN1_THRESHOLD_OFF 60
23 #define FAN1_THRESHOLD_ON 68
26 /* Fan is at FULL speed */
27 #define FAN0_THRESHOLD_OFF 66
28 #define FAN0_THRESHOLD_ON 78
31 /* Temperature which OS will shutdown at */
32 #define CRITICAL_TEMPERATURE 100
34 /* Temperature which OS will throttle CPU */
35 #define PASSIVE_TEMPERATURE 90
37 /* Tj_max value for calculating PECI CPU temperature */
38 #define MAX_TEMPERATURE 100