coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
spd.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SPD_LEN   256
 
#define SPD_DRAM_TYPE   2
 
#define SPD_DRAM_DDR3   0x0b
 
#define SPD_DRAM_LPDDR3   0xf1
 
#define SPD_DENSITY_BANKS   4
 
#define SPD_ADDRESSING   5
 
#define SPD_ORGANIZATION   7
 
#define SPD_BUS_DEV_WIDTH   8
 
#define SPD_PART_OFF   128
 
#define SPD_PART_LEN   18
 
#define SPD_MANU_OFF   148
 

Functions

int mainboard_get_spd_index (void)
 
uintptr_t mainboard_get_spd_data (void)
 

Macro Definition Documentation

◆ SPD_ADDRESSING

#define SPD_ADDRESSING   5

Definition at line 12 of file spd.h.

◆ SPD_BUS_DEV_WIDTH

#define SPD_BUS_DEV_WIDTH   8

Definition at line 14 of file spd.h.

◆ SPD_DENSITY_BANKS

#define SPD_DENSITY_BANKS   4

Definition at line 11 of file spd.h.

◆ SPD_DRAM_DDR3

#define SPD_DRAM_DDR3   0x0b

Definition at line 9 of file spd.h.

◆ SPD_DRAM_LPDDR3

#define SPD_DRAM_LPDDR3   0xf1

Definition at line 10 of file spd.h.

◆ SPD_DRAM_TYPE

#define SPD_DRAM_TYPE   2

Definition at line 8 of file spd.h.

◆ SPD_LEN

#define SPD_LEN   256

Definition at line 6 of file spd.h.

◆ SPD_MANU_OFF

#define SPD_MANU_OFF   148

Definition at line 17 of file spd.h.

◆ SPD_ORGANIZATION

#define SPD_ORGANIZATION   7

Definition at line 13 of file spd.h.

◆ SPD_PART_LEN

#define SPD_PART_LEN   18

Definition at line 16 of file spd.h.

◆ SPD_PART_OFF

#define SPD_PART_OFF   128

Definition at line 15 of file spd.h.

Function Documentation

◆ mainboard_get_spd_data()

uintptr_t mainboard_get_spd_data ( void  )

Definition at line 75 of file spd.c.

◆ 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: