blob: 550ad797c4b89f654479451842e6b7cde5ad14df [file] [log] [blame]
Duncan Laurie43276242014-11-11 08:31:26 -08001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2014 Google Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
Duncan Laurie43276242014-11-11 08:31:26 -080014 */
15
16#include <ec/google/chromeec/ec.h>
17#include "board_version.h"
18
19const char *samus_board_version(void)
20{
21 switch (google_chromeec_get_board_version()) {
22 case SAMUS_EC_BOARD_VERSION_EVT1:
23 return "EVT1";
24 case SAMUS_EC_BOARD_VERSION_EVT2:
25 return "EVT2";
26 case SAMUS_EC_BOARD_VERSION_EVT3:
27 return "EVT3";
28 case SAMUS_EC_BOARD_VERSION_EVT4:
29 return "EVT4";
30 default:
31 return "Unknown";
32 }
33}