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

Go to the source code of this file.

Functions

void variant_memory_params (struct cnl_mb_cfg *bcfg)
 
int variant_memory_sku (void)
 

Variables

static const struct cnl_mb_cfg baseboard_memcfg
 

Function Documentation

◆ variant_memory_params()

void variant_memory_params ( struct cnl_mb_cfg bcfg)

Definition at line 55 of file memory.c.

References baseboard_memcfg, and memcpy().

Here is the call graph for this function:

◆ variant_memory_sku()

int variant_memory_sku ( void  )

Definition at line 60 of file memory.c.

References ARRAY_SIZE, board_id(), BOARD_ID_UNKNOWN, gpio_base2_value(), GPIO_MEM_CONFIG_0, GPIO_MEM_CONFIG_1, GPIO_MEM_CONFIG_2, GPIO_MEM_CONFIG_3, and val.

Here is the call graph for this function:

Variable Documentation

◆ baseboard_memcfg

const struct cnl_mb_cfg baseboard_memcfg
static

Definition at line 1 of file memory.c.

Referenced by variant_memory_params().