blob: 82ee355084dca5c100e4aa857dce8868bb8c1834 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
#include <boardid.h>
#include <baseboard/variants.h>
#include <ec/google/chromeec/ec.h>
uint32_t sku_id(void)
{
return google_chromeec_get_board_sku();
}
/* An unprovisioned SKU ID indicates we're in the factory booting prior to
proper SKU ID provisioning. */
int boot_is_factory_unprovisioned(void)
{
return sku_id() == CROS_SKU_UNPROVISIONED;
}
|