payloads/edk2: Disable the CPU Timer Lib unless supported
[coreboot.git] / src / mainboard / intel / emeraldlake2 / thermal.h
blob3f27bacf40a0229638e520a1ae2c20d116df426a
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef EMERALDLAKE2_THERMAL_H
4 #define EMERALDLAKE2_THERMAL_H
6 /* Fan is OFF */
7 #define FAN4_THRESHOLD_OFF 0
8 #define FAN4_THRESHOLD_ON 0
9 #define FAN4_PWM 0x00
11 /* Fan is at LOW speed */
12 #define FAN3_THRESHOLD_OFF 48
13 #define FAN3_THRESHOLD_ON 55
14 #define FAN3_PWM 0x40
16 /* Fan is at MEDIUM speed */
17 #define FAN2_THRESHOLD_OFF 52
18 #define FAN2_THRESHOLD_ON 64
19 #define FAN2_PWM 0x80
21 /* Fan is at HIGH speed */
22 #define FAN1_THRESHOLD_OFF 60
23 #define FAN1_THRESHOLD_ON 68
24 #define FAN1_PWM 0xb0
26 /* Fan is at FULL speed */
27 #define FAN0_THRESHOLD_OFF 66
28 #define FAN0_THRESHOLD_ON 78
29 #define FAN0_PWM 0xff
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
40 #endif