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 <soc/sdram.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)
 

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

References ARRAY_SIZE, BD_ID0, BD_ID1, and gpio_base3_value().

Here is the call graph for this function:

◆ ram_code()

uint32_t ram_code ( void  )

Definition at line 21 of file boardid.c.

References sdram_get_ram_code().

Here is the call graph for this function: