coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
spd_util.c File Reference
#include <console/console.h>
#include <gpio.h>
#include <soc/gpio.h>
#include <mainboard/google/cyan/spd/spd_util.h>
Include dependency graph for spd_util.c:

Go to the source code of this file.

Functions

uint8_t get_ramid (void)
 
int get_variant_spd_index (int ram_id, int *dual)
 

Variables

static const uint32_t dual_channel_config
 

Function Documentation

◆ get_ramid()

uint8_t get_ramid ( void  )

Definition at line 24 of file spd_util.c.

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

Here is the call graph for this function:

◆ get_variant_spd_index()

int get_variant_spd_index ( int  ram_id,
int *  dual 
)

Definition at line 36 of file spd_util.c.

References BIOS_DEBUG, dual_channel_config, and printk.

Variable Documentation

◆ dual_channel_config

const uint32_t dual_channel_config
static
Initial value:
=
(1 << 0) | (1 << 2) | (1 << 4) | (1 << 7) | (1 << 9)

Definition at line 21 of file spd_util.c.

Referenced by get_variant_spd_index().