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 <variant/gpio.h>
Include dependency graph for memory.c:

Go to the source code of this file.

Functions

const struct mb_cfgvariant_memory_params (void)
 
static int variant_memory_sku (void)
 
void variant_memory_init (FSPM_UPD *mupd)
 

Variables

static const struct mb_cfg baseboard_memcfg
 

Function Documentation

◆ variant_memory_init()

void variant_memory_init ( FSPM_UPD *  mupd)

Definition at line 80 of file memory.c.

References baseboard_memcfg, board_cfg, mb_cfg::ddr4_config, mem_ddr4_config::dq_pins_interleaved, gpio_get(), MEM_TOPO_DIMM_MODULE, MEM_TOPO_MEMORY_DOWN, memcfg_init(), memcpy(), MEMORY_INTERLEAVED, variant_memory_params(), and variant_memory_sku().

Referenced by mainboard_memory_init_params().

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

◆ variant_memory_params()

const struct mb_cfg* variant_memory_params ( void  )

Definition at line 62 of file memory.c.

References baseboard_memcfg.

◆ variant_memory_sku()

static int variant_memory_sku ( void  )
static

Definition at line 67 of file memory.c.

References ARRAY_SIZE, gpio_base2_value(), GPIO_MEM_CONFIG_0, GPIO_MEM_CONFIG_1, GPIO_MEM_CONFIG_2, GPIO_MEM_CONFIG_3, and GPIO_MEM_CONFIG_4.

Here is the call graph for this function:

Variable Documentation

◆ baseboard_memcfg

const struct mb_cfg baseboard_memcfg
static

Definition at line 1 of file memory.c.

Referenced by variant_memory_params().