summaryrefslogtreecommitdiff
path: root/src/acpi/chromeos-gnvs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/acpi/chromeos-gnvs.c')
-rw-r--r--src/acpi/chromeos-gnvs.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/acpi/chromeos-gnvs.c b/src/acpi/chromeos-gnvs.c
index 8d96769160..81c652ad3f 100644
--- a/src/acpi/chromeos-gnvs.c
+++ b/src/acpi/chromeos-gnvs.c
@@ -2,6 +2,7 @@
#include <acpi/acpi_gnvs.h>
#include <ec/google/chromeec/ec.h>
+#include <smbios.h>
#include <vendorcode/google/chromeos/gnvs.h>
void gnvs_assign_chromeos(void)
@@ -27,3 +28,13 @@ void gnvs_set_ecfw_rw(void)
gnvs_chromeos->vbt2 = ACTIVE_ECFW_RW;
}
+
+void smbios_type0_bios_version(uintptr_t address)
+{
+ chromeos_acpi_t *gnvs_chromeos = gnvs_chromeos_ptr(acpi_get_gnvs());
+ if (!gnvs_chromeos)
+ return;
+
+ /* Location of smbios_type0.bios_version() string filled with spaces. */
+ gnvs_chromeos->vbt10 = address;
+}