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 <console/console.h>
#include <gpio.h>
#include <soc/gpio.h>
#include <soc/romstage.h>
#include <string.h>
#include "../gpio.h"
#include "spd.h"
Include dependency graph for spd.c:

Go to the source code of this file.

Functions

static void mainboard_print_spd_info (uint8_t spd[])
 
int mainboard_get_spd_index (void)
 
uintptr_t mainboard_get_spd_data (void)
 

Function Documentation

◆ mainboard_get_spd_data()

uintptr_t mainboard_get_spd_data ( void  )

Definition at line 75 of file spd.c.

References BIOS_ERR, BIOS_INFO, cbfs_map(), die(), mainboard_get_spd_index(), mainboard_print_spd_info(), printk, spd_index, and SPD_LEN.

Here is the call graph for this function:

◆ mainboard_get_spd_index()

int mainboard_get_spd_index ( void  )

Definition at line 64 of file spd.c.

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

Referenced by mainboard_get_spd_data(), and mainboard_memory_init_params().

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

◆ mainboard_print_spd_info()

static void mainboard_print_spd_info ( uint8_t  spd[])
static

Definition at line 13 of file spd.c.

References BIOS_INFO, memcpy(), printk, SPD_ADDRESSING, SPD_BUS_DEV_WIDTH, SPD_DENSITY_BANKS, SPD_DRAM_DDR3, SPD_DRAM_LPDDR3, SPD_DRAM_TYPE, SPD_ORGANIZATION, SPD_PART_LEN, and SPD_PART_OFF.

Referenced by mainboard_get_spd_data().

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