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 <console/console.h>
#include <gpio.h>
#include <spd_bin.h>
#include <string.h>
#include <variant/gpio.h>
#include <amdblocks/dimm_spd.h>
Include dependency graph for memory.c:

Go to the source code of this file.

Functions

uint8_t __weak variant_memory_sku (void)
 
int __weak variant_mainboard_read_spd (uint8_t spdAddress, char *buf, size_t len)
 

Function Documentation

◆ variant_mainboard_read_spd()

int __weak variant_mainboard_read_spd ( uint8_t  spdAddress,
char *  buf,
size_t  len 
)

Definition at line 23 of file memory.c.

References BIOS_ERR, BIOS_INFO, buf, memcpy(), printk, spd_cbfs_map(), spd_index, and variant_memory_sku().

Referenced by mainboard_read_spd().

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

◆ variant_memory_sku()

uint8_t __weak variant_memory_sku ( void  )

Definition at line 11 of file memory.c.

References ARRAY_SIZE, gpio_base2_value(), MEM_CONFIG0, MEM_CONFIG1, MEM_CONFIG2, and MEM_CONFIG3.

Here is the call graph for this function: