coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
cpu.h File Reference

Go to the source code of this file.

Macros

#define C1_LATENCY   1
 
#define C6_LATENCY   127
 
#define C7_LATENCY   253
 
#define C8_LATENCY   260
 
#define C9_LATENCY   487
 
#define C10_LATENCY   1048
 
#define C1_POWER   0x3e8
 
#define C6_POWER   0x15e
 
#define C7_POWER   0xc8
 
#define C8_POWER   0xc8
 
#define C9_POWER   0xc8
 
#define C10_POWER   0xc8
 

Enumerations

enum  adl_cpu_type {
  ADL_UNKNOWN , ADL_M , ADL_N , ADL_P ,
  ADL_S
}
 

Functions

enum adl_cpu_type get_adl_cpu_type (void)
 
uint8_t get_supported_lpm_mask (void)
 

Macro Definition Documentation

◆ C10_LATENCY

#define C10_LATENCY   1048

Definition at line 12 of file cpu.h.

◆ C10_POWER

#define C10_POWER   0xc8

Definition at line 20 of file cpu.h.

◆ C1_LATENCY

#define C1_LATENCY   1

Definition at line 7 of file cpu.h.

◆ C1_POWER

#define C1_POWER   0x3e8

Definition at line 15 of file cpu.h.

◆ C6_LATENCY

#define C6_LATENCY   127

Definition at line 8 of file cpu.h.

◆ C6_POWER

#define C6_POWER   0x15e

Definition at line 16 of file cpu.h.

◆ C7_LATENCY

#define C7_LATENCY   253

Definition at line 9 of file cpu.h.

◆ C7_POWER

#define C7_POWER   0xc8

Definition at line 17 of file cpu.h.

◆ C8_LATENCY

#define C8_LATENCY   260

Definition at line 10 of file cpu.h.

◆ C8_POWER

#define C8_POWER   0xc8

Definition at line 18 of file cpu.h.

◆ C9_LATENCY

#define C9_LATENCY   487

Definition at line 11 of file cpu.h.

◆ C9_POWER

#define C9_POWER   0xc8

Definition at line 19 of file cpu.h.

Enumeration Type Documentation

◆ adl_cpu_type

Enumerator
ADL_UNKNOWN 
ADL_M 
ADL_N 
ADL_P 
ADL_S 

Definition at line 22 of file cpu.h.

Function Documentation

◆ get_adl_cpu_type()

enum adl_cpu_type get_adl_cpu_type ( void  )

Definition at line 183 of file cpu.c.

References configure_tcc_thermal_target(), and mp_init_with_smm().

Referenced by get_supported_lpm_mask().

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

◆ get_supported_lpm_mask()

uint8_t get_supported_lpm_mask ( void  )

Definition at line 261 of file cpu.c.

References ADL_M, ADL_N, ADL_P, ADL_S, BIOS_ERR, get_adl_cpu_type(), LPM_S0i2_0, LPM_S0i2_1, LPM_S0i3_0, printk, and type.

Referenced by fill_fsps_misc_power_params(), platform_fsp_silicon_init_params_cb(), and soc_pmc_fill_ssdt().

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