1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef LUMPY_THERMAL_H
4 #define LUMPY_THERMAL_H
7 #define FAN4_THRESHOLD_OFF 0
8 #define FAN4_THRESHOLD_ON 0
10 /* Fan is at LOW speed */
11 #define FAN3_THRESHOLD_OFF 44
12 #define FAN3_THRESHOLD_ON 48
14 /* Fan is at MEDIUM speed */
15 #define FAN2_THRESHOLD_OFF 48
16 #define FAN2_THRESHOLD_ON 54
18 /* Fan is at HIGH speed */
19 #define FAN1_THRESHOLD_OFF 60
20 #define FAN1_THRESHOLD_ON 64
22 /* Fan is at FULL speed */
23 #define FAN0_THRESHOLD_OFF 66
24 #define FAN0_THRESHOLD_ON 78
26 /* Temperature which OS will shutdown at */
27 #define CRITICAL_TEMPERATURE 100
29 /* Temperature which OS will throttle CPU */
30 #define PASSIVE_TEMPERATURE 90
32 /* Tj_max value for calculating PECI CPU temperature */
33 #define MAX_TEMPERATURE 100