coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
board_version.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
5 
6 const char *samus_board_version(void)
7 {
9 
10  google_chromeec_get_board_version(&board_version);
11  switch (board_version) {
13  return "EVT1";
15  return "EVT2";
17  return "EVT3";
19  return "EVT4";
20  default:
21  return "Unknown";
22  }
23 }
const char * samus_board_version(void)
Definition: board_version.c:6
#define SAMUS_EC_BOARD_VERSION_EVT3
Definition: board_version.h:10
#define SAMUS_EC_BOARD_VERSION_EVT1
Definition: board_version.h:8
#define SAMUS_EC_BOARD_VERSION_EVT4
Definition: board_version.h:11
#define SAMUS_EC_BOARD_VERSION_EVT2
Definition: board_version.h:9
#define SAMUS_EC_BOARD_VERSION_UNKNOWN
Definition: board_version.h:12
int google_chromeec_get_board_version(uint32_t *version)
google_chromeec_get_board_version() - Get the board version
Definition: ec.c:915
unsigned int uint32_t
Definition: stdint.h:14