src/acpi: Add macro for FADT Minor Version and use it

Change-Id: I6a0e9b33c6a1045a3a4a6717487525b82d41e558
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/62036
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Lance Zhao
This commit is contained in:
Elyes Haouas
2022-02-16 12:08:16 +01:00
committed by Felix Held
parent e904d9ad67
commit 8b950f4d7a
7 changed files with 28 additions and 13 deletions

View File

@@ -1944,11 +1944,16 @@ __weak int acpi_get_gpe(int gpe)
return -1; /* implemented by SOC */
}
u8 get_acpi_fadt_minor_version(void)
{
return ACPI_FADT_MINOR_VERSION_0;
}
int get_acpi_table_revision(enum acpi_tables table)
{
switch (table) {
case FADT:
return ACPI_FADT_REV_ACPI_6_0;
return ACPI_FADT_REV_ACPI_6;
case MADT: /* ACPI 3.0: 2, ACPI 4.0/5.0: 3, ACPI 6.2b/6.3: 5 */
return 3;
case MCFG: