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

Go to the source code of this file.

Data Structures

struct  soc_power_limits_config
 

Macros

#define MCH_PKG_POWER_LIMIT_LO   0x59a0
 
#define MCH_PKG_POWER_LIMIT_HI   0x59a4
 
#define MCH_DDR_POWER_LIMIT_LO   0x58e0
 
#define MCH_DDR_POWER_LIMIT_HI   0x58e4
 
#define MSR_VR_CURRENT_CONFIG   0x601
 
#define MSR_PL3_CONTROL   0x615
 
#define MSR_PLATFORM_POWER_LIMIT   0x65c
 
#define MOBILE_SKU_PL1_TIME_SEC   28
 
#define MILLIWATTS_TO_WATTS   1000
 

Functions

void set_power_limits (u8 power_limit_1_time, struct soc_power_limits_config *config)
 
u8 get_cpu_tdp (void)
 

Macro Definition Documentation

◆ MCH_DDR_POWER_LIMIT_HI

#define MCH_DDR_POWER_LIMIT_HI   0x58e4

Definition at line 9 of file power_limit.h.

◆ MCH_DDR_POWER_LIMIT_LO

#define MCH_DDR_POWER_LIMIT_LO   0x58e0

Definition at line 8 of file power_limit.h.

◆ MCH_PKG_POWER_LIMIT_HI

#define MCH_PKG_POWER_LIMIT_HI   0x59a4

Definition at line 7 of file power_limit.h.

◆ MCH_PKG_POWER_LIMIT_LO

#define MCH_PKG_POWER_LIMIT_LO   0x59a0

Definition at line 6 of file power_limit.h.

◆ MILLIWATTS_TO_WATTS

#define MILLIWATTS_TO_WATTS   1000

Definition at line 18 of file power_limit.h.

◆ MOBILE_SKU_PL1_TIME_SEC

#define MOBILE_SKU_PL1_TIME_SEC   28

Definition at line 16 of file power_limit.h.

◆ MSR_PL3_CONTROL

#define MSR_PL3_CONTROL   0x615

Definition at line 12 of file power_limit.h.

◆ MSR_PLATFORM_POWER_LIMIT

#define MSR_PLATFORM_POWER_LIMIT   0x65c

Definition at line 13 of file power_limit.h.

◆ MSR_VR_CURRENT_CONFIG

#define MSR_VR_CURRENT_CONFIG   0x601

Definition at line 11 of file power_limit.h.

Function Documentation

◆ get_cpu_tdp()

u8 get_cpu_tdp ( void  )

Definition at line 199 of file power_limit.c.

References cpu_tdp, msr_struct::lo, MSR_PKG_POWER_SKU, MSR_PKG_POWER_SKU_UNIT, and rdmsr().

Referenced by fill_vr_domain_config(), get_sku_index(), get_vccin_aux_imon_iccmax(), soc_systemagent_init(), and variant_update_power_limits().

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

◆ set_power_limits()