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

Go to the source code of this file.

Functions

static unsigned int get_memory_config_straps (void)
 
static bool is_dual_channel (const unsigned int memid)
 
static void fill_spd_data (struct cnl_mb_cfg *mem_cfg)
 
void mainboard_memory_init_params (FSPM_UPD *memupd)
 

Function Documentation

◆ fill_spd_data()

static void fill_spd_data ( struct cnl_mb_cfg mem_cfg)
static

Definition at line 46 of file romstage.c.

References BIOS_DEBUG, get_memory_config_straps(), is_dual_channel(), printk, READ_SPD_CBFS, spd_info::read_type, cnl_mb_cfg::spd, spd_info::spd_data_by::spd_index, and spd_info::spd_spec.

Referenced by mainboard_memory_init_params().

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

◆ get_memory_config_straps()

static unsigned int get_memory_config_straps ( void  )
static

Definition at line 11 of file romstage.c.

References ARRAY_SIZE, gpio_base2_value(), GPP_E22, GPP_E23, and GPP_H6.

Referenced by fill_spd_data().

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

◆ is_dual_channel()

static bool is_dual_channel ( const unsigned int  memid)
static

Definition at line 41 of file romstage.c.

Referenced by fill_spd_data().

Here is the caller graph for this function:

◆ mainboard_memory_init_params()

void mainboard_memory_init_params ( FSPM_UPD *  memupd)

Definition at line 63 of file romstage.c.

References cannonlake_memcfg_init(), fill_spd_data(), get_uint_option(), memcfg, and cnl_mb_cfg::rcomp_resistor.

Here is the call graph for this function: