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

Go to the source code of this file.

Functions

static uint8_t get_board_id (void)
 
uint32_t board_id (void)
 board_id() - Get the board version More...
 

Variables

static int board_id_value = -1
 

Function Documentation

◆ board_id()

uint32_t board_id ( void  )

board_id() - Get the board version

Return: board version on success, BOARD_ID_UNKNOWN on failure/error.

This function is used to get the mainboard version.

Definition at line 26 of file boardid.c.

References board_id_value, and get_board_id().

Here is the call graph for this function:

◆ get_board_id()

static uint8_t get_board_id ( void  )
static

Definition at line 14 of file boardid.c.

References ARRAY_SIZE, BIOS_INFO, gpio_binary_first_base3_value(), and printk.

Referenced by board_id(), get_spd_index(), mainboard_get_spd_index(), mainboard_memory_init_params(), mainboard_vbt_filename(), smbios_system_sku(), variant_memory_params(), and variant_update_typec_init_config().

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

Variable Documentation

◆ board_id_value

int board_id_value = -1
static

Definition at line 12 of file boardid.c.

Referenced by board_id().