From 7a5f0a981715b48ccd87647ebf02050376dd3be6 Mon Sep 17 00:00:00 2001 From: Marc Jones Date: Wed, 22 Aug 2018 19:36:40 -0600 Subject: [PATCH] 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 Reviewed-on: https://review.coreboot.org/28279 Reviewed-by: Martin Roth Reviewed-by: Paul Menzel Reviewed-by: Marshall Dawson Tested-by: build bot (Jenkins) --- src/lib/nhlt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/nhlt.c b/src/lib/nhlt.c index f6135c7d8a..5001c385c5 100644 --- a/src/lib/nhlt.c +++ b/src/lib/nhlt.c @@ -413,7 +413,7 @@ uintptr_t nhlt_serialize_oem_overrides(struct nhlt *nhlt, memset(header, 0, sizeof(acpi_header_t)); memcpy(header->signature, "NHLT", 4); write_le32(&header->length, sz); - write_le8(&header->revision, 5); + write_le8(&header->revision, get_acpi_table_revision(NHLT)); if (oem_id == NULL) oem_id = OEM_ID;