xref: /aosp_15_r20/external/coreboot/src/mainboard/google/beltino/variants/tricky/include/variant/thermal.h (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
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	50
13 #define FAN3_THRESHOLD_ON	55
14 #define FAN3_PWM		0x76
15 
16 /* Fan is at MEDIUM speed */
17 #define FAN2_THRESHOLD_OFF	59
18 #define FAN2_THRESHOLD_ON	65
19 #define FAN2_PWM		0x98
20 
21 /* Fan is at HIGH speed */
22 #define FAN1_THRESHOLD_OFF	68
23 #define FAN1_THRESHOLD_ON	75
24 #define FAN1_PWM		0xbf
25 
26 /* Fan is at FULL speed */
27 #define FAN0_THRESHOLD_OFF	80
28 #define FAN0_THRESHOLD_ON	86
29 #define FAN0_PWM		0xdc
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	95
36 
37 /* Tj_max value for calculating PECI CPU temperature */
38 #define MAX_TEMPERATURE		100
39 
40 #endif
41