Duncan Laurie | 4327624 | 2014-11-11 08:31:26 -0800 | [diff] [blame] | 1 | /* |
| 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 Laurie | 4327624 | 2014-11-11 08:31:26 -0800 | [diff] [blame] | 14 | */ |
| 15 | |
| 16 | #include <ec/google/chromeec/ec.h> |
| 17 | #include "board_version.h" |
| 18 | |
| 19 | const 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 | } |