coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
spd_util.c File Reference
#include <arch/cpu.h>
#include <intelblocks/mp_init.h>
#include <stdint.h>
#include <string.h>
#include "../board_id.h"
#include "spd.h"
Include dependency graph for spd_util.c:

Go to the source code of this file.

Enumerations

enum  icl_dimm_type { icl_u_ddr4 = 0 , icl_u_lpddr4 = 1 , icl_u_lpddr4_type_3 = 4 , icl_y_lpddr4 = 6 }
 

Functions

void mainboard_fill_dq_map_ch0 (void *dq_map_ptr)
 
void mainboard_fill_dq_map_ch1 (void *dq_map_ptr)
 
static uint8_t get_spd_index (void)
 
void mainboard_fill_dqs_map_ch0 (void *dqs_map_ptr)
 
void mainboard_fill_dqs_map_ch1 (void *dqs_map_ptr)
 
void mainboard_fill_rcomp_res_data (void *rcomp_ptr)
 
void mainboard_fill_rcomp_strength_data (void *rcomp_strength_ptr)
 

Enumeration Type Documentation

◆ icl_dimm_type

Enumerator
icl_u_ddr4 
icl_u_lpddr4 
icl_u_lpddr4_type_3 
icl_y_lpddr4 

Definition at line 11 of file spd_util.c.

Function Documentation

◆ get_spd_index()

static uint8_t get_spd_index ( void  )
static

Definition at line 37 of file spd_util.c.

References get_board_id(), and spd_index.

Referenced by mainboard_fill_dqs_map_ch0(), mainboard_fill_dqs_map_ch1(), mainboard_fill_rcomp_strength_data(), mainboard_get_spd_data(), and mainboard_has_dual_channel_mem().

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

◆ mainboard_fill_dq_map_ch0()

void mainboard_fill_dq_map_ch0 ( void dq_map_ptr)

Definition at line 18 of file spd_util.c.

References dq_map, and memcpy().

Here is the call graph for this function:

◆ mainboard_fill_dq_map_ch1()

void mainboard_fill_dq_map_ch1 ( void dq_map_ptr)

Definition at line 28 of file spd_util.c.

References dq_map, and memcpy().

Here is the call graph for this function:

◆ mainboard_fill_dqs_map_ch0()

void mainboard_fill_dqs_map_ch0 ( void dqs_map_ptr)

Definition at line 44 of file spd_util.c.

References get_spd_index(), icl_u_ddr4, icl_u_lpddr4, icl_u_lpddr4_type_3, icl_y_lpddr4, and memcpy().

Here is the call graph for this function:

◆ mainboard_fill_dqs_map_ch1()

void mainboard_fill_dqs_map_ch1 ( void dqs_map_ptr)

Definition at line 71 of file spd_util.c.

References get_spd_index(), icl_u_ddr4, icl_u_lpddr4, icl_u_lpddr4_type_3, icl_y_lpddr4, and memcpy().

Here is the call graph for this function:

◆ mainboard_fill_rcomp_res_data()

void mainboard_fill_rcomp_res_data ( void rcomp_ptr)

Definition at line 94 of file spd_util.c.

References memcpy().

Here is the call graph for this function:

◆ mainboard_fill_rcomp_strength_data()

void mainboard_fill_rcomp_strength_data ( void rcomp_strength_ptr)

Definition at line 101 of file spd_util.c.

References cpu_get_cpuid(), CPUID_ICELAKE_A0, get_spd_index(), icl_u_ddr4, icl_u_lpddr4, icl_u_lpddr4_type_3, icl_y_lpddr4, and memcpy().

Here is the call graph for this function: