coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
raminit.c File Reference
#include <assert.h>
#include <cbfs.h>
#include <cbmem.h>
#include <cf9_reset.h>
#include <console/console.h>
#include <device/pci_def.h>
#include <memory_info.h>
#include <mrc_cache.h>
#include <string.h>
#include <soc/iomap.h>
#include <soc/pei_data.h>
#include <soc/pei_wrapper.h>
#include <soc/pm.h>
#include <soc/romstage.h>
#include <soc/systemagent.h>
#include <timestamp.h>
Include dependency graph for raminit.c:

Go to the source code of this file.

Functions

static void save_mrc_data (struct pei_data *pei_data)
 
static void report_memory_config (void)
 
static void sdram_initialize (struct pei_data *pei_data)
 
static void setup_sdram_meminfo (struct pei_data *pei_data)
 
void perform_raminit (const struct chipset_power_state *const power_state)
 

Variables

static const char *const ecc_decoder []
 

Function Documentation

◆ perform_raminit()

◆ report_memory_config()

static void report_memory_config ( void  )
static

Definition at line 42 of file raminit.c.

References BIOS_DEBUG, ecc_decoder, MAD_CHNL, MAD_DIMM, MC_BIOS_DATA, mchbar_read32(), NUM_CHANNELS, and printk.

Referenced by init_dram_ddr3(), and sdram_initialize().

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

◆ save_mrc_data()

static void save_mrc_data ( struct pei_data pei_data)
static

Definition at line 20 of file raminit.c.

References BIOS_DEBUG, pei_data::data_to_save, pei_data::data_to_save_size, mrc_cache_stash_data(), MRC_TRAINING_DATA, NULL, and printk.

Referenced by perform_raminit().

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

◆ sdram_initialize()

◆ setup_sdram_meminfo()

Variable Documentation

◆ ecc_decoder

const char* const ecc_decoder[]
static
Initial value:
= {
"inactive",
"active on IO",
"disabled on IO",
"active",
}

Definition at line 31 of file raminit.c.

Referenced by report_memory_config().