coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
thermal.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAX_TRIP_TEMP   205
 
#define DEFAULT_TRIP_TEMP   50
 
#define PMC_PWRM_THERMAL_CTEN   0x150c
 
#define PMC_PWRM_THERMAL_CTEN_CTENLOCK   (1 << 31)
 
#define PMC_PWRM_THERMAL_CTEN_CPDEN   (1 << 0)
 
#define PMC_PWRM_THERMAL_ECRPTEN   0x1510
 
#define PMC_PWRM_THERMAL_ECRPTEN_ECRPTENLOCK   (1 << 31)
 
#define PMC_PWRM_THERMAL_ECRPTEN_EN_RPT   (1 << 0)
 
#define PMC_PWRM_THERMAL_TL   0x1520
 
#define PMC_PWRM_THERMAL_TL_TLLOCK   (1 << 31)
 
#define PMC_PWRM_THERMAL_TL_TTEN   (1 << 29)
 
#define PMC_PWRM_THERMAL_TLEN   0x1528
 
#define PMC_PWRM_THERMAL_TLEN_TLENLOCK   (1 << 31)
 
#define PMC_PWRM_THERMAL_PHLC   0x1540
 
#define PMC_PWRM_THERMAL_PHLC_PHLCLOCK   (1 << 31)
 

Functions

uint8_t get_thermal_trip_temp (void)
 
uint32_t pch_get_ltt_value (void)
 
void pch_thermal_configuration (void)
 

Macro Definition Documentation

◆ DEFAULT_TRIP_TEMP

#define DEFAULT_TRIP_TEMP   50

Definition at line 8 of file thermal.h.

◆ MAX_TRIP_TEMP

#define MAX_TRIP_TEMP   205

Definition at line 6 of file thermal.h.

◆ PMC_PWRM_THERMAL_CTEN

#define PMC_PWRM_THERMAL_CTEN   0x150c

Definition at line 26 of file thermal.h.

◆ PMC_PWRM_THERMAL_CTEN_CPDEN

#define PMC_PWRM_THERMAL_CTEN_CPDEN   (1 << 0)

Definition at line 30 of file thermal.h.

◆ PMC_PWRM_THERMAL_CTEN_CTENLOCK

#define PMC_PWRM_THERMAL_CTEN_CTENLOCK   (1 << 31)

Definition at line 28 of file thermal.h.

◆ PMC_PWRM_THERMAL_ECRPTEN

#define PMC_PWRM_THERMAL_ECRPTEN   0x1510

Definition at line 32 of file thermal.h.

◆ PMC_PWRM_THERMAL_ECRPTEN_ECRPTENLOCK

#define PMC_PWRM_THERMAL_ECRPTEN_ECRPTENLOCK   (1 << 31)

Definition at line 34 of file thermal.h.

◆ PMC_PWRM_THERMAL_ECRPTEN_EN_RPT

#define PMC_PWRM_THERMAL_ECRPTEN_EN_RPT   (1 << 0)

Definition at line 36 of file thermal.h.

◆ PMC_PWRM_THERMAL_PHLC

#define PMC_PWRM_THERMAL_PHLC   0x1540

Definition at line 48 of file thermal.h.

◆ PMC_PWRM_THERMAL_PHLC_PHLCLOCK

#define PMC_PWRM_THERMAL_PHLC_PHLCLOCK   (1 << 31)

Definition at line 50 of file thermal.h.

◆ PMC_PWRM_THERMAL_TL

#define PMC_PWRM_THERMAL_TL   0x1520

Definition at line 38 of file thermal.h.

◆ PMC_PWRM_THERMAL_TL_TLLOCK

#define PMC_PWRM_THERMAL_TL_TLLOCK   (1 << 31)

Definition at line 40 of file thermal.h.

◆ PMC_PWRM_THERMAL_TL_TTEN

#define PMC_PWRM_THERMAL_TL_TTEN   (1 << 29)

Definition at line 42 of file thermal.h.

◆ PMC_PWRM_THERMAL_TLEN

#define PMC_PWRM_THERMAL_TLEN   0x1528

Definition at line 44 of file thermal.h.

◆ PMC_PWRM_THERMAL_TLEN_TLENLOCK

#define PMC_PWRM_THERMAL_TLEN_TLENLOCK   (1 << 31)

Definition at line 46 of file thermal.h.

Function Documentation

◆ get_thermal_trip_temp()

uint8_t get_thermal_trip_temp ( void  )

Definition at line 8 of file thermal_common.c.

References chip_get_common_soc_structure(), and soc_intel_common_config::pch_thermal_trip.

Referenced by pch_get_ltt_value().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pch_get_ltt_value()

uint32_t pch_get_ltt_value ( void  )

Definition at line 17 of file thermal_common.c.

References DEFAULT_TRIP_TEMP, die(), get_thermal_trip_temp(), and MAX_TRIP_TEMP.

Referenced by pch_thermal_configuration().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pch_thermal_configuration()