mb/google/rauru: Implement regulator interface
[coreboot2.git] / src / mainboard / starlabs / starlite_adl / smbios.c
blobab2c211a9960b90ec03ad1e40dfdae8be8979709
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <chip.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 /* Get the Embedded Controller firmware version */
13 void smbios_ec_revision(uint8_t *ec_major_revision, uint8_t *ec_minor_revision)
15 u16 ec_version = ec_get_version();
17 *ec_major_revision = ec_version >> 8;
18 *ec_minor_revision = ec_version & 0xff;
21 const char *smbios_system_sku(void)
23 return CONFIG_MAINBOARD_FAMILY;
26 u8 smbios_mainboard_feature_flags(void)
28 return SMBIOS_FEATURE_FLAGS_HOSTING_BOARD | SMBIOS_FEATURE_FLAGS_REPLACEABLE;
31 const char *smbios_chassis_version(void)
33 return smbios_mainboard_version();
36 const char *smbios_chassis_serial_number(void)
38 return smbios_mainboard_serial_number();