coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
romstage.c File Reference
#include <assert.h>
#include <arch/romstage.h>
#include <console/console.h>
#include <cbmem.h>
#include <fsp/api.h>
#include <fsp/util.h>
#include <hob_iiouds.h>
#include <hob_memmap.h>
#include <pc80/mc146818rtc.h>
#include <soc/ddr.h>
#include <soc/romstage.h>
#include <soc/pci_devs.h>
#include <soc/intel/common/smbios.h>
#include <stdbool.h>
#include <string.h>
#include "chip.h"
Include dependency graph for romstage.c:

Go to the source code of this file.

Macros

#define CMOS_OFFSET_MRC_STATUS   0x47
 

Functions

void __weak mainboard_memory_init_params (FSPM_UPD *mupd)
 
static const struct SystemMemoryMapHob * get_system_memory_map (void)
 
static uint8_t get_error_correction_type (const uint8_t RasModesEnabled)
 
void save_dimm_info (void)
 
static void set_cmos_mrc_cold_boot_flag (bool cold_boot_required)
 
void platform_fsp_memory_init_params_cb (FSPM_UPD *mupd, uint32_t version)
 

Macro Definition Documentation

◆ CMOS_OFFSET_MRC_STATUS

#define CMOS_OFFSET_MRC_STATUS   0x47

Definition at line 25 of file romstage.c.

Function Documentation

◆ get_error_correction_type()

static uint8_t get_error_correction_type ( const uint8_t  RasModesEnabled)
static

Definition at line 58 of file romstage.c.

References MEMORY_ARRAY_ECC_MULTI_BIT, and MEMORY_ARRAY_ECC_SINGLE_BIT.

Referenced by save_dimm_info().

Here is the caller graph for this function:

◆ get_system_memory_map()

static const struct SystemMemoryMapHob* get_system_memory_map ( void  )
static

Definition at line 42 of file romstage.c.

References assert, fsp_find_extension_hob_by_guid(), and NULL.

Referenced by save_dimm_info().

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

◆ mainboard_memory_init_params()

void __weak mainboard_memory_init_params ( FSPM_UPD *  mupd)

Definition at line 37 of file romstage.c.

◆ platform_fsp_memory_init_params_cb()

void platform_fsp_memory_init_params_cb ( FSPM_UPD *  mupd,
uint32_t  version 
)

Definition at line 155 of file romstage.c.

References config, config_of_soc, device::enabled, mainboard_memory_init_params(), PCH_DEVFN_THERMAL, pcidev_path_on_root(), and set_cmos_mrc_cold_boot_flag().

Here is the call graph for this function:

◆ save_dimm_info()

◆ set_cmos_mrc_cold_boot_flag()

static void set_cmos_mrc_cold_boot_flag ( bool  cold_boot_required)
static

Definition at line 145 of file romstage.c.

References BIOS_SPEW, CMOS_OFFSET_MRC_STATUS, cmos_read(), cmos_write(), and printk.

Referenced by platform_fsp_memory_init_params_cb().

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