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

Go to the source code of this file.

Functions

const struct cnl_mb_cfgget_variant_memory_cfg (struct cnl_mb_cfg *mem_cfg)
 
int variant_memory_sku (void)
 

Variables

static const int spd_index [32]
 

Function Documentation

◆ get_variant_memory_cfg()

const struct cnl_mb_cfg* get_variant_memory_cfg ( struct cnl_mb_cfg mem_cfg)

Definition at line 17 of file memory.c.

References baseboard_memcfg, DDR_CH0, DDR_CH1, mb_cfg::dqs_map, memcpy(), READ_SPD_CBFS, spd_info::read_type, cnl_mb_cfg::spd, spd_info::spd_data_by::spd_index, spd_info::spd_spec, 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_sku()

int variant_memory_sku ( void  )

Definition at line 61 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, GPIO_MEM_CONFIG_4, and spd_index.

Here is the call graph for this function:

Variable Documentation

◆ spd_index