Simon Glass | b5c5177 | 2018-03-05 12:18:40 -0700 | [diff] [blame^] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright 2018 Google LLC |
| 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. |
| 14 | */ |
| 15 | |
| 16 | #include <ec/google/chromeec/ec.h> |
| 17 | #include <baseboard/variants.h> |
| 18 | |
| 19 | uint8_t variant_board_sku(void) |
| 20 | { |
| 21 | static int sku = -1; |
| 22 | |
| 23 | if (sku == -1) |
| 24 | sku = google_chromeec_get_sku_id(); |
| 25 | |
| 26 | return sku; |
| 27 | } |