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 <ec/google/chromeec/ec.h>
#include "board.h"
#include <commonlib/bsd/cb_err.h>
#include <console/console.h>
#include <gpio.h>
Include dependency graph for boardid.c:

Go to the source code of this file.

Functions

uint32_t board_id (void)
 board_id() - Get the board version More...
 
uint32_t ram_code (void)
 
uint32_t sku_id (void)
 

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

References ARRAY_SIZE, BIOS_INFO, CONFIG, GPIO, gpio_base3_value(), pins, printk, and UNDEFINED_STRAPPING_ID.

Here is the call graph for this function:

◆ ram_code()

uint32_t ram_code ( void  )

Definition at line 35 of file boardid.c.

References UNDEFINED_STRAPPING_ID.

◆ sku_id()

uint32_t sku_id ( void  )

Definition at line 42 of file boardid.c.

References google_chromeec_get_board_sku().

Here is the call graph for this function: