coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
boardid.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <baseboard/variants.h>
4 #include <boardid.h>
6 
7 int variant_board_id(void)
8 {
10 
11  if (CONFIG(EC_GOOGLE_CHROMEEC)) {
12  if (id == BOARD_ID_INIT) {
14  id = BOARD_ID_UNKNOWN;
15  }
16  return id;
17  } else {
18  return 0;
19  }
20 }
#define BOARD_ID_INIT
Definition: boardid.h:11
#define BOARD_ID_UNKNOWN
Definition: boardid.h:10
@ CONFIG
Definition: dsi_common.h:201
int google_chromeec_get_board_version(uint32_t *version)
google_chromeec_get_board_version() - Get the board version
Definition: ec.c:915
int variant_board_id(void)
variant_board_id() - Get the board id for the current board variant
Definition: boardid.c:7
#define MAYBE_STATIC_NONZERO
Definition: stddef.h:38
unsigned int uint32_t
Definition: stdint.h:14