summaryrefslogtreecommitdiff
path: root/src/mainboard/google/poppy/boardid.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/poppy/boardid.c')
-rw-r--r--src/mainboard/google/poppy/boardid.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mainboard/google/poppy/boardid.c b/src/mainboard/google/poppy/boardid.c
index e33c094a2d..4607f34453 100644
--- a/src/mainboard/google/poppy/boardid.c
+++ b/src/mainboard/google/poppy/boardid.c
@@ -13,15 +13,16 @@
* GNU General Public License for more details.
*/
+#include <baseboard/variants.h>
#include <boardid.h>
-#include <ec/google/chromeec/ec.h>
+#include <stddef.h>
uint8_t board_id(void)
{
MAYBE_STATIC int id = -1;
if (id < 0)
- id = google_chromeec_get_board_version();
+ id = variant_board_id();
return id;
}