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...
 
uint32_t ram_code (void)
 

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 23 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 10 of file boardid.c.

References ARRAY_SIZE, BIOS_INFO, BOARD_ID_0, BOARD_ID_1, BOARD_ID_2, gpio_base2_value(), pins, and printk.

Referenced by board_id().

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

◆ ram_code()

uint32_t ram_code ( void  )

Definition at line 31 of file boardid.c.

References ARRAY_SIZE, BIOS_INFO, gpio_base2_value(), pins, printk, RAM_ID_0, RAM_ID_1, RAM_ID_2, and RAM_ID_3.

Here is the call graph for this function:

Variable Documentation

◆ board_id_value

int board_id_value = -1
static

Definition at line 8 of file boardid.c.

Referenced by board_id().