1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 3 #include <boardid.h> 4 #include <ec/google/chromeec/ec.h> 5 board_id(void)6uint32_t board_id(void) 7 { 8 static uint32_t id = BOARD_ID_INIT; 9 10 if (id == BOARD_ID_INIT) { 11 if (google_chromeec_get_board_version(&id)) 12 id = BOARD_ID_UNKNOWN; 13 } 14 15 return id; 16 } 17