mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
acpi: acpi_table: Bump revisions
The FADT structure found in U-Boot represents FADT revision 6 and the GICC and GICD structures defined in U-Boot are based on ACPI revision 6.3. Bump the table revision to fix FWTS failures seen on aarch64. Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-by: Simon Glass <sjg@chromium.org> Cc: Simon Glass <sjg@chromium.org> Cc: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
committed by
Tom Rini
parent
763bad3e1c
commit
4b882f63d4
@@ -63,9 +63,9 @@ int acpi_get_table_revision(enum acpi_tables table)
|
||||
{
|
||||
switch (table) {
|
||||
case ACPITAB_FADT:
|
||||
return ACPI_FADT_REV_ACPI_3_0;
|
||||
return ACPI_FADT_REV_ACPI_6_0;
|
||||
case ACPITAB_MADT:
|
||||
return ACPI_MADT_REV_ACPI_3_0;
|
||||
return ACPI_MADT_REV_ACPI_6_2;
|
||||
case ACPITAB_MCFG:
|
||||
return ACPI_MCFG_REV_ACPI_3_0;
|
||||
case ACPITAB_TCPA:
|
||||
@@ -219,6 +219,7 @@ int acpi_write_fadt(struct acpi_ctx *ctx, const struct acpi_writer *entry)
|
||||
memcpy(header->oem_table_id, OEM_TABLE_ID, 8);
|
||||
memcpy(header->creator_id, ASLC_ID, 4);
|
||||
header->creator_revision = 1;
|
||||
fadt->minor_revision = 2;
|
||||
|
||||
fadt->x_firmware_ctrl = map_to_sysmem(ctx->facs);
|
||||
fadt->x_dsdt = map_to_sysmem(ctx->dsdt);
|
||||
@@ -254,7 +255,7 @@ int acpi_write_madt(struct acpi_ctx *ctx, const struct acpi_writer *entry)
|
||||
/* Fill out header fields */
|
||||
acpi_fill_header(header, "APIC");
|
||||
header->length = sizeof(struct acpi_madt);
|
||||
header->revision = ACPI_MADT_REV_ACPI_3_0;
|
||||
header->revision = acpi_get_table_revision(ACPITAB_MADT);
|
||||
|
||||
acpi_inc(ctx, sizeof(struct acpi_madt));
|
||||
/* TODO: Get rid of acpi_fill_madt and use driver model */
|
||||
|
||||
Reference in New Issue
Block a user