summaryrefslogtreecommitdiff
path: root/src/mainboard/starlabs/starbook/smbios.c
diff options
context:
space:
mode:
authorSean Rhodes <sean@starlabs.systems>2022-07-04 14:18:52 +0100
committerFelix Singer <felixsinger@posteo.net>2022-07-07 17:24:09 +0000
commitecda77531d29d64785acbbbe83c176211ffe7128 (patch)
tree01883b450b31bbb5ede2184967a1d72dda86fb9f /src/mainboard/starlabs/starbook/smbios.c
parentac8b508f3fdec9e545e10df2e32cd43bcc9e4781 (diff)
mb/starlabs: Rename LabTop to StarBook
The LabTop was renamed to StarBook since the release of the Mk V. This change keeps the directory name more relevant, as there are more boards using the name StarBook. Signed-off-by: Sean Rhodes <sean@starlabs.systems> Change-Id: I3513fb56c1adf663ed7bcdade2cc52cd8c0d6f4b Reviewed-on: https://review.coreboot.org/c/coreboot/+/65640 Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <felixsinger@posteo.net>
Diffstat (limited to 'src/mainboard/starlabs/starbook/smbios.c')
-rw-r--r--src/mainboard/starlabs/starbook/smbios.c44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/mainboard/starlabs/starbook/smbios.c b/src/mainboard/starlabs/starbook/smbios.c
new file mode 100644
index 0000000000..fbdbefd361
--- /dev/null
+++ b/src/mainboard/starlabs/starbook/smbios.c
@@ -0,0 +1,44 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <chip.h>
+#include <device/device.h>
+#include <device/pci_def.h>
+#include <ec/starlabs/merlin/ec.h>
+#include <smbios.h>
+#include <types.h>
+#include <uuid.h>
+#include <variants.h>
+
+const char *smbios_mainboard_bios_version(void)
+{
+ return "8";
+}
+
+/* Get the Embedded Controller firmware version */
+void smbios_ec_revision(uint8_t *ec_major_revision, uint8_t *ec_minor_revision)
+{
+ u16 ec_version = ec_get_version();
+
+ *ec_major_revision = ec_version >> 8;
+ *ec_minor_revision = ec_version & 0xff;
+}
+
+const char *smbios_system_sku(void)
+{
+ return CONFIG_MAINBOARD_FAMILY;
+}
+
+u8 smbios_mainboard_feature_flags(void)
+{
+ return SMBIOS_FEATURE_FLAGS_HOSTING_BOARD | SMBIOS_FEATURE_FLAGS_REPLACEABLE;
+}
+
+const char *smbios_chassis_version(void)
+{
+ return smbios_mainboard_version();
+}
+
+const char *smbios_chassis_serial_number(void)
+{
+ return smbios_mainboard_serial_number();
+}