ChromeOS: Refactor SMBIOS type0 bios_version()
Pointer to an empty string (filled with spaces) is stored inside GNVS. Rearrange things to avoid having <chromeos/gnvs.h> in SMBIOS code. Change-Id: I9405afbea29b896488b4cdd6dd32c4db686fe48c Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49281 Reviewed-by: Lance Zhao Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Patrick Georgi
parent
661ad4666c
commit
0fcbd3a125
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user