From 8abf6ae7575772dd1e10254537bd447dabb7847e Mon Sep 17 00:00:00 2001 From: Marc Jones Date: Wed, 22 Aug 2018 19:08:52 -0600 Subject: [PATCH] intel: Use common HPET table revision function Use get_acpi_table_revision(HPET) to keep all table versions in sync. Change-Id: Idb5e8ccd49ec27f87a290f33c62df3c177645669 Signed-off-by: Marc Jones Reviewed-on: https://review.coreboot.org/28278 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Marshall Dawson Reviewed-by: Martin Roth --- src/soc/intel/baytrail/acpi.c | 2 +- src/soc/intel/broadwell/acpi.c | 2 +- src/soc/intel/fsp_baytrail/acpi.c | 2 +- src/soc/intel/fsp_broadwell_de/acpi.c | 2 +- src/southbridge/intel/lynxpoint/acpi.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/soc/intel/baytrail/acpi.c b/src/soc/intel/baytrail/acpi.c index 31435f7491..a43e6b6911 100644 --- a/src/soc/intel/baytrail/acpi.c +++ b/src/soc/intel/baytrail/acpi.c @@ -147,7 +147,7 @@ void acpi_create_intel_hpet(acpi_hpet_t * hpet) memcpy(header->asl_compiler_id, ASLC, 4); header->length = sizeof(acpi_hpet_t); - header->revision = 1; + header->revision = get_acpi_table_revision(HPET); /* fill out HPET address */ addr->space_id = 0; /* Memory */ diff --git a/src/soc/intel/broadwell/acpi.c b/src/soc/intel/broadwell/acpi.c index af8e012965..d826d43322 100644 --- a/src/soc/intel/broadwell/acpi.c +++ b/src/soc/intel/broadwell/acpi.c @@ -200,7 +200,7 @@ void acpi_create_intel_hpet(acpi_hpet_t *hpet) memcpy(header->asl_compiler_id, ASLC, 4); header->length = sizeof(acpi_hpet_t); - header->revision = 1; + header->revision = get_acpi_table_revision(HPET); /* fill out HPET address */ addr->space_id = 0; /* Memory */ diff --git a/src/soc/intel/fsp_baytrail/acpi.c b/src/soc/intel/fsp_baytrail/acpi.c index f4dd545cab..97c8d5b46f 100644 --- a/src/soc/intel/fsp_baytrail/acpi.c +++ b/src/soc/intel/fsp_baytrail/acpi.c @@ -144,7 +144,7 @@ void acpi_create_intel_hpet(acpi_hpet_t * hpet) memcpy(header->asl_compiler_id, ASLC, 4); header->length = sizeof(acpi_hpet_t); - header->revision = 1; + header->revision = get_acpi_table_revision(HPET); /* fill out HPET address */ addr->space_id = 0; /* Memory */ diff --git a/src/soc/intel/fsp_broadwell_de/acpi.c b/src/soc/intel/fsp_broadwell_de/acpi.c index 9b64edca3f..5d654770da 100644 --- a/src/soc/intel/fsp_broadwell_de/acpi.c +++ b/src/soc/intel/fsp_broadwell_de/acpi.c @@ -125,7 +125,7 @@ void acpi_create_intel_hpet(acpi_hpet_t *hpet) memcpy(header->asl_compiler_id, ASLC, 4); header->length = sizeof(acpi_hpet_t); - header->revision = 1; + header->revision = get_acpi_table_revision(HPET); /* fill out HPET address */ addr->space_id = 0; /* Memory */ diff --git a/src/southbridge/intel/lynxpoint/acpi.c b/src/southbridge/intel/lynxpoint/acpi.c index 2a02744a69..7f6a5ad3d2 100644 --- a/src/southbridge/intel/lynxpoint/acpi.c +++ b/src/southbridge/intel/lynxpoint/acpi.c @@ -36,7 +36,7 @@ void acpi_create_intel_hpet(acpi_hpet_t * hpet) memcpy(header->asl_compiler_id, ASLC, 4); header->length = sizeof(acpi_hpet_t); - header->revision = 1; + header->revision = get_acpi_table_revision(HPET); /* fill out HPET address */ addr->space_id = 0; /* Memory */