summaryrefslogtreecommitdiff
path: root/src/mainboard/google/sarien/sku.c
blob: 8f54ae6d1274c5f4e394135eb72d7d6f2754bac4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* SPDX-License-Identifier: GPL-2.0-only */

#include <boardid.h>
#include <ec/google/wilco/commands.h>
#include <smbios.h>
#include <variant/variant.h>

uint32_t sku_id(void)
{
	if (wilco_ec_signed_fw())
		return VARIANT_SKU_ID_SIGNED_EC;
	else
		return VARIANT_SKU_ID;
}

const char *smbios_system_sku(void)
{
	if (wilco_ec_signed_fw())
		return VARIANT_SKU_NAME_SIGNED_EC;
	else
		return VARIANT_SKU_NAME;
}