3 #ifndef _SOC_INTEL_COMMON_BLOCK_THERMAL_H_
4 #define _SOC_INTEL_COMMON_BLOCK_THERMAL_H_
6 #define MAX_TRIP_TEMP 205
8 #define DEFAULT_TRIP_TEMP 50
10 #if CONFIG(SOC_INTEL_COMMON_BLOCK_THERMAL_PCI_DEV)
12 #define GET_LTT_VALUE(x) (((x) + 50) * (2))
13 #elif CONFIG(SOC_INTEL_COMMON_BLOCK_THERMAL_BEHIND_PMC)
20 #define GET_LTT_VALUE(x) (((x) + 10) << 20 | ((x) + 5) << 10 | (x))
22 #error <Undefined: GET_LTT_VALUE macro>
26 #define PMC_PWRM_THERMAL_CTEN 0x150c
28 #define PMC_PWRM_THERMAL_CTEN_CTENLOCK (1 << 31)
30 #define PMC_PWRM_THERMAL_CTEN_CPDEN (1 << 0)
32 #define PMC_PWRM_THERMAL_ECRPTEN 0x1510
34 #define PMC_PWRM_THERMAL_ECRPTEN_ECRPTENLOCK (1 << 31)
36 #define PMC_PWRM_THERMAL_ECRPTEN_EN_RPT (1 << 0)
38 #define PMC_PWRM_THERMAL_TL 0x1520
40 #define PMC_PWRM_THERMAL_TL_TLLOCK (1 << 31)
42 #define PMC_PWRM_THERMAL_TL_TTEN (1 << 29)
44 #define PMC_PWRM_THERMAL_TLEN 0x1528
46 #define PMC_PWRM_THERMAL_TLEN_TLENLOCK (1 << 31)
48 #define PMC_PWRM_THERMAL_PHLC 0x1540
50 #define PMC_PWRM_THERMAL_PHLC_PHLCLOCK (1 << 31)
uint8_t get_thermal_trip_temp(void)
uint32_t pch_get_ltt_value(void)
void pch_thermal_configuration(void)