blob: d0b48f057217827fd9163db12cef18770cc07a5d [file] [log] [blame]
Thejaswani Puttae3443d82019-07-18 16:23:20 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright 2018 Google LLC
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/wilco/commands.h>
18#include <smbios.h>
19#include <variant/variant.h>
20
21uint32_t sku_id(void)
22{
23 if (wilco_ec_signed_fw())
24 return VARIANT_SKU_ID_SIGNED_EC;
25 else
26 return VARIANT_SKU_ID;
27}
28
29const char *smbios_system_sku(void)
30{
31 if (wilco_ec_signed_fw())
32 return VARIANT_SKU_NAME_SIGNED_EC;
33 else
34 return VARIANT_SKU_NAME;
35}