coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
cnl_memcfg_init.c File Reference
#include <assert.h>
#include <console/console.h>
#include <fsp/util.h>
#include <soc/cnl_memcfg_init.h>
#include <spd_bin.h>
#include <string.h>
Include dependency graph for cnl_memcfg_init.c:

Go to the source code of this file.

Functions

static void meminit_memcfg (FSP_M_CONFIG *mem_cfg, const struct cnl_mb_cfg *board_cfg)
 
static void meminit_spd_data (FSP_M_CONFIG *mem_cfg, uint8_t mem_slot, size_t spd_data_len, uintptr_t spd_data_ptr)
 
static void meminit_cbfs_spd_index (FSP_M_CONFIG *mem_cfg, int spd_index, uint8_t mem_slot)
 
void cannonlake_memcfg_init (FSP_M_CONFIG *mem_cfg, const struct cnl_mb_cfg *cnl_cfg)
 

Function Documentation

◆ cannonlake_memcfg_init()

◆ meminit_cbfs_spd_index()

static void meminit_cbfs_spd_index ( FSP_M_CONFIG mem_cfg,
int  spd_index,
uint8_t  mem_slot 
)
static

Definition at line 79 of file cnl_memcfg_init.c.

References assert, BIOS_DEBUG, CONFIG, die(), meminit_spd_data(), NUM_DIMM_SLOT, print_spd_info(), printk, spd_cbfs_map(), and spd_index.

Referenced by cannonlake_memcfg_init().

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

◆ meminit_memcfg()

static void meminit_memcfg ( FSP_M_CONFIG mem_cfg,
const struct cnl_mb_cfg board_cfg 
)
static

Definition at line 9 of file cnl_memcfg_init.c.

References board_cfg, DDR_CH0, DDR_CH1, mb_cfg::dq_map, mb_cfg::dqs_map, memcpy(), memset(), mb_cfg::rcomp_resistor, and mb_cfg::rcomp_targets.

Referenced by cannonlake_memcfg_init().

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

◆ meminit_spd_data()

static void meminit_spd_data ( FSP_M_CONFIG mem_cfg,
uint8_t  mem_slot,
size_t  spd_data_len,
uintptr_t  spd_data_ptr 
)
static

Definition at line 41 of file cnl_memcfg_init.c.

References assert, BIOS_INFO, die(), and printk.

Referenced by cannonlake_memcfg_init(), and meminit_cbfs_spd_index().

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