xref: /aosp_15_r20/external/coreboot/src/mainboard/google/beltino/variants/panther/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	40
13 #define FAN3_THRESHOLD_ON	50
14 #define FAN3_PWM		0x6b
15 
16 /* Fan is at MEDIUM speed */
17 #define FAN2_THRESHOLD_OFF	75
18 #define FAN2_THRESHOLD_ON	83
19 #define FAN2_PWM		0xcc
20 
21 /* Fan is at HIGH speed */
22 #define FAN1_THRESHOLD_OFF	86
23 #define FAN1_THRESHOLD_ON	90
24 #define FAN1_PWM		0xe5
25 
26 /* Fan is at FULL speed */
27 #define FAN0_THRESHOLD_OFF	93
28 #define FAN0_THRESHOLD_ON	96
29 #define FAN0_PWM		0xff
30 
31 /* Temperature which OS will shutdown at */
32 #define CRITICAL_TEMPERATURE	100
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
41