mb/google/rauru: Implement regulator interface
[coreboot.git] / src / mainboard / starlabs / lite / smbios.c
blob5b85f501fd58ab8f78733cccfe7bfc20815c8150
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <device/device.h>
4 #include <device/pci_def.h>
5 #include <ec/starlabs/merlin/ec.h>
6 #include <smbios.h>
7 #include <types.h>
8 #include <uuid.h>
9 #include <variants.h>
11 /* Get the Embedded Controller firmware version */
12 void smbios_ec_revision(uint8_t *ec_major_revision, uint8_t *ec_minor_revision)
14 u16 ec_version = ec_get_version();
16 *ec_major_revision = ec_version >> 8;
17 *ec_minor_revision = ec_version & 0xff;
20 const char *smbios_system_sku(void)
22 return CONFIG_MAINBOARD_FAMILY;
25 u8 smbios_mainboard_feature_flags(void)
27 return SMBIOS_FEATURE_FLAGS_HOSTING_BOARD | SMBIOS_FEATURE_FLAGS_REPLACEABLE;
30 const char *smbios_chassis_version(void)
32 return smbios_mainboard_version();
35 const char *smbios_chassis_serial_number(void)
37 return smbios_mainboard_serial_number();