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

Go to the source code of this file.

Functions

const struct mb_cfg *__weak variant_memory_params (void)
 
bool __weak variant_is_half_populated (void)
 
void __weak variant_get_spd_info (struct mem_spd *spd_info)
 

Variables

static const struct mb_cfg ddr4_mem_config
 

Function Documentation

◆ variant_get_spd_info()

void __weak variant_get_spd_info ( struct mem_spd spd_info)

Definition at line 38 of file memory.c.

References MEM_TOPO_DIMM_MODULE.

◆ variant_is_half_populated()

bool __weak variant_is_half_populated ( void  )

Definition at line 33 of file memory.c.

◆ variant_memory_params()

const struct mb_cfg* __weak variant_memory_params ( void  )

Definition at line 28 of file memory.c.

References ddr4_mem_config.

Variable Documentation

◆ ddr4_mem_config

const struct mb_cfg ddr4_mem_config
static
Initial value:
= {
.type = MEM_TYPE_DDR4,
.rcomp = {
.resistor = 100,
.targets = {50, 20, 25, 25, 25},
},
.ect = 1,
.UserBd = BOARD_TYPE_MOBILE,
.ddr_config = {
.dq_pins_interleaved = 1,
},
}
@ MEM_TYPE_DDR4
Definition: meminit.h:11
@ BOARD_TYPE_MOBILE
Definition: romstage.h:14

Definition at line 1 of file memory.c.

Referenced by variant_memory_params().