coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
spd.c File Reference
#include <cbfs.h>
#include <cbmem.h>
#include <console/console.h>
#include <gpio.h>
#include <lib.h>
#include <memory_info.h>
#include <smbios.h>
#include <spd.h>
#include <soc/gpio.h>
#include <soc/romstage.h>
#include <string.h>
#include <spd_bin.h>
#include "spd_util.h"
Include dependency graph for spd.c:

Go to the source code of this file.

Functions

__weak uint8_t get_ramid (void)
 
static voidget_spd_pointer (int *dual)
 
void spd_memory_init_params (MEMORY_INIT_UPD *memory_params)
 
static void set_dimm_info (const uint8_t *spd, struct dimm_info *dimm)
 
void mainboard_save_dimm_info (struct romstage_params *params)
 

Function Documentation

◆ get_ramid()

__weak uint8_t get_ramid ( void  )

Definition at line 17 of file spd.c.

References ARRAY_SIZE, GP_SE_02, GP_SW_64, GP_SW_67, GP_SW_80, and gpio_base2_value().

Referenced by get_spd_pointer(), and variant_memory_init_params().

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

◆ get_spd_pointer()

static void* get_spd_pointer ( int *  dual)
static

Definition at line 29 of file spd.c.

References BIOS_DEBUG, BIOS_ERR, cbfs_map(), die(), get_ramid(), get_variant_spd_index(), NULL, printk, spd_index, and SPD_PAGE_LEN.

Referenced by mainboard_save_dimm_info(), and spd_memory_init_params().

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

◆ mainboard_save_dimm_info()

◆ set_dimm_info()

◆ spd_memory_init_params()

void spd_memory_init_params ( MEMORY_INIT_UPD *  memory_params)

Definition at line 59 of file spd.c.

References BIOS_DEBUG, CONFIG, get_spd_pointer(), hexdump(), MEM_DDR3, MEM_LPDDR3, NULL, printk, and SPD_PAGE_LEN.

Referenced by mainboard_memory_init_params().

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