summaryrefslogtreecommitdiff
path: root/src/mainboard/google/samus/mainboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/samus/mainboard.c')
-rw-r--r--src/mainboard/google/samus/mainboard.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mainboard/google/samus/mainboard.c b/src/mainboard/google/samus/mainboard.c
index 89303b9017..85e9dfbbee 100644
--- a/src/mainboard/google/samus/mainboard.c
+++ b/src/mainboard/google/samus/mainboard.c
@@ -32,12 +32,26 @@
#include <arch/io.h>
#include <arch/interrupt.h>
#include <boot/coreboot_tables.h>
+#include <ec/google/chromeec/ec.h>
#include "ec.h"
void mainboard_suspend_resume(void)
{
}
+const char *smbios_mainboard_version(void)
+{
+ switch (google_chromeec_get_board_version()) {
+ case SAMUS_EC_BOARD_VERSION_EVT:
+ return "EVT";
+ case SAMUS_EC_BOARD_VERSION_EVT2:
+ return "EVT2";
+ case SAMUS_EC_BOARD_VERSION_EVT3:
+ return "EVT3";
+ }
+ return "Unknown";
+}
+
static void mainboard_init(device_t dev)
{
mainboard_ec_init();