blob: 9ec058d1ae1b56d6a11756f142377304ca29b41b [file] [log] [blame]
Furquan Shaikha2094832017-09-25 08:04:49 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2017 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.
14 */
15
16#include <boardid.h>
17#include <ec/google/chromeec/ec.h>
18
Julius Wernere2f17f72017-12-05 13:39:10 -080019uint32_t board_id(void)
Furquan Shaikha2094832017-09-25 08:04:49 -070020{
21 MAYBE_STATIC int id = -1;
22
23 if (id < 0)
24 id = google_chromeec_get_board_version();
25
26 return id;
27}