lib/nhlt: Use common function to set NHLT version
Set NHLT version with get_acpi_revision(NHLT) to keep all table versions in sync. Change-Id: I4ea9d511142e4ea68e651e58c2c985e739c032d9 Signed-off-by: Marc Jones <marcj303@gmail.com> Reviewed-on: https://review.coreboot.org/28279 Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
478f430182
commit
7a5f0a9817
|
@ -413,7 +413,7 @@ uintptr_t nhlt_serialize_oem_overrides(struct nhlt *nhlt,
|
||||||
memset(header, 0, sizeof(acpi_header_t));
|
memset(header, 0, sizeof(acpi_header_t));
|
||||||
memcpy(header->signature, "NHLT", 4);
|
memcpy(header->signature, "NHLT", 4);
|
||||||
write_le32(&header->length, sz);
|
write_le32(&header->length, sz);
|
||||||
write_le8(&header->revision, 5);
|
write_le8(&header->revision, get_acpi_table_revision(NHLT));
|
||||||
|
|
||||||
if (oem_id == NULL)
|
if (oem_id == NULL)
|
||||||
oem_id = OEM_ID;
|
oem_id = OEM_ID;
|
||||||
|
|
Loading…
Reference in New Issue