coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#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"
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) |
#define CMOS_OFFSET_MRC_STATUS 0x47 |
Definition at line 25 of file romstage.c.
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().
|
static |
Definition at line 42 of file romstage.c.
References assert, fsp_find_extension_hob_by_guid(), and NULL.
Referenced by save_dimm_info().
Definition at line 37 of file romstage.c.
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().
Definition at line 78 of file romstage.c.
References ARRAY_SIZE, assert, BIOS_DEBUG, BIOS_ERR, BIOS_WARNING, cbmem_add(), CBMEM_ID_MEMINFO, ch, dimm_info::configured_speed_mts, memory_info::dimm, memory_info::dimm_cnt, dimm_info_fill(), memory_info::ecc_type, get_ddr_voltage(), get_error_correction_type(), get_max_memory_speed(), get_system_memory_map(), memory_info::max_capacity_mib, dimm_info::max_speed_mts, memset(), MiB, NULL, memory_info::number_of_devices, and printk.
Referenced by mainboard_romstage_entry().
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().