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 <types.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...
 
static bool use_old_pins (void)
 
uint32_t ram_code (void)
 
static uint8_t panel_id (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 7 of file boardid.c.

References ARRAY_SIZE, GPIO, gpio_binary_first_base3_value(), pins, and UNDEFINED_STRAPPING_ID.

Here is the call graph for this function:

◆ panel_id()

static uint8_t panel_id ( void  )
static

Definition at line 45 of file boardid.c.

References ARRAY_SIZE, GPIO, gpio_binary_first_base3_value(), and pins.

Referenced by configure_mipi_panel(), display_init(), get_active_panel(), get_panel_description(), and sku_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 28 of file boardid.c.

References ARRAY_SIZE, GPIO, gpio_base2_value(), pins, UNDEFINED_STRAPPING_ID, and use_old_pins().

Here is the call graph for this function:

◆ sku_id()

uint32_t sku_id ( void  )

Definition at line 52 of file boardid.c.

References ARRAY_SIZE, CONFIG, GPIO, gpio_binary_first_base3_value(), panel_id(), pins, UNDEFINED_STRAPPING_ID, and use_old_pins().

Here is the call graph for this function:

◆ use_old_pins()

static bool use_old_pins ( void  )
static

Definition at line 21 of file boardid.c.

References board_id(), and CONFIG.

Referenced by ram_code(), and sku_id().

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