payloads/edk2: Disable the CPU Timer Lib unless supported
[coreboot.git] / src / mainboard / starlabs / lite / smbios.c
blob394e29c5c9f64c1bab29ea3de8787149ad46882f
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <console/console.h>
4 #include <device/device.h>
5 #include <device/pci_def.h>
6 #include <ec/starlabs/merlin/ec.h>
7 #include <smbios.h>
8 #include <types.h>
9 #include <uuid.h>
10 #include <variants.h>
12 const char *smbios_mainboard_bios_version(void)
14 return "8";
17 /* Get the Embedded Controller firmware version */
18 void smbios_ec_revision(uint8_t *ec_major_revision, uint8_t *ec_minor_revision)
20 u16 ec_version = ec_get_version();
22 *ec_major_revision = ec_version >> 8;
23 *ec_minor_revision = ec_version & 0xff;
26 const char *smbios_system_sku(void)
28 return CONFIG_MAINBOARD_FAMILY;
31 u8 smbios_mainboard_feature_flags(void)
33 return SMBIOS_FEATURE_FLAGS_HOSTING_BOARD | SMBIOS_FEATURE_FLAGS_REPLACEABLE;
36 const char *smbios_chassis_version(void)
38 return smbios_mainboard_version();
41 const char *smbios_chassis_serial_number(void)
43 return smbios_mainboard_serial_number();