]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
acpi: Add ACPITAB for PPTT and GTDT
authorPatrick Rudolph <patrick.rudolph@9elements.com>
Wed, 23 Oct 2024 13:19:53 +0000 (15:19 +0200)
committerTom Rini <trini@konsulko.com>
Sun, 27 Oct 2024 23:24:13 +0000 (17:24 -0600)
Return the ACPI table revision in acpi_get_table_revision() for
PPTT and GTDT. Match both to ACPI 6.2.

Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Cc: Simon Glass <sjg@chromium.org>
include/acpi/acpi_table.h
lib/acpi/acpi_table.c

index 48f8ce248fdcebe73eabe317cc98aee545883e9b..7ee3248ff61f3d3277e76d261514ef2d011d9b3e 100644 (file)
@@ -841,12 +841,14 @@ enum acpi_tables {
        ACPITAB_ECDT,
        ACPITAB_FACS,
        ACPITAB_FADT,
+       ACPITAB_GTDT,
        ACPITAB_HEST,
        ACPITAB_HPET,
        ACPITAB_IVRS,
        ACPITAB_MADT,
        ACPITAB_MCFG,
        ACPITAB_NHLT,
+       ACPITAB_PPTT,
        ACPITAB_RSDP,
        ACPITAB_RSDT,
        ACPITAB_SLIT,
index 959cac9e2e3b2030bb1d46368ebf73fb702ff3e0..2dc7b998e22454ed12ab7ed16d95dd12d8abed23 100644 (file)
@@ -107,6 +107,10 @@ int acpi_get_table_revision(enum acpi_tables table)
                return 1;
        case ACPITAB_SPCR:
                return 2;
+       case ACPITAB_PPTT: /* ACPI 6.2: 1 */
+               return 1;
+       case ACPITAB_GTDT: /* ACPI 6.2: 2, ACPI 6.3: 3 */
+               return 2;
        default:
                return -EINVAL;
        }