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

Go to the source code of this file.

Macros

#define BOARD_ID_GLK_RVP1_DDR4   0x5 /* RVP1 - DDR4 */
 
#define BOARD_ID_GLK_RVP2_LP4SD   0x7 /* RVP2 - LP4 Solder Down */
 
#define BOARD_ID_GLK_RVP2_LP4   0x8 /* RVP2 - LP4 Socket */
 
#define EC_FAB_ID_CMD   0x0D /* Get the board fab ID in the lower 3 bits */
 

Functions

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

Macro Definition Documentation

◆ BOARD_ID_GLK_RVP1_DDR4

#define BOARD_ID_GLK_RVP1_DDR4   0x5 /* RVP1 - DDR4 */

Definition at line 8 of file boardid.c.

◆ BOARD_ID_GLK_RVP2_LP4

#define BOARD_ID_GLK_RVP2_LP4   0x8 /* RVP2 - LP4 Socket */

Definition at line 10 of file boardid.c.

◆ BOARD_ID_GLK_RVP2_LP4SD

#define BOARD_ID_GLK_RVP2_LP4SD   0x7 /* RVP2 - LP4 Solder Down */

Definition at line 9 of file boardid.c.

◆ EC_FAB_ID_CMD

#define EC_FAB_ID_CMD   0x0D /* Get the board fab ID in the lower 3 bits */

Definition at line 11 of file boardid.c.

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

References CONFIG, EC_FAB_ID_CMD, MAYBE_STATIC_NONZERO, recv_ec_data(), send_ec_command(), and variant_board_id().

Here is the call graph for this function: