1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <ec/google/chromeec/ec.h>
4 #include <console/console.h>
9 const char *google_chromeec_smbios_system_sku(void)
11 static char sku_str
[14]; /* sku{0..2147483647} */
12 uint32_t sku_id
= google_chromeec_get_board_sku();
13 snprintf(sku_str
, sizeof(sku_str
), "sku%u", sku_id
);
17 const char *smbios_system_sku(void)
19 return google_chromeec_smbios_system_sku();
22 const char *smbios_mainboard_manufacturer(void)
24 static char oem_name
[32];
25 static const char *manuf
;
30 manuf
= CONFIG_MAINBOARD_SMBIOS_MANUFACTURER
;
31 if (google_chromeec_cbi_get_oem_name(&oem_name
[0], ARRAY_SIZE(oem_name
)) < 0)
32 printk(BIOS_INFO
, "Couldn't obtain OEM name from CBI\n");
33 else if (strlen(oem_name
) > 0)
36 printk(BIOS_INFO
, "OEM name from CBI is empty, use default\n");
41 const char *smbios_system_manufacturer(void)