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>
12 const char *smbios_mainboard_bios_version(void)
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();