]> git.dujemihanovic.xyz Git - u-boot.git/commit
acpi: use 64-bit addresses in FADT table
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 16 Dec 2023 08:11:57 +0000 (09:11 +0100)
committerSimon Glass <sjg@chromium.org>
Sun, 7 Jan 2024 20:45:07 +0000 (13:45 -0700)
commita083ae71e085535e2caa0fd5de991bddced6dc94
treea82ce59f3b27e550e1342d4eae7f461fd16e0351
parent70fe23859437ffe4efe0793423937d8b78ebf9d6
acpi: use 64-bit addresses in FADT table

Fields X_FIRMWAE_CTRL and X_DSDT must be 64bit wide. Convert pointers to
to uintptr_t to fill these.

If field X_FIRMWARE_CTRL is filled, field FIRMWARE must be ignored. If
field X_DSDT is filled, field DSDT must be ignored. We should not fill
unused fields.

See the field definitions in chapter "5.2.9 Fixed ACPI Description Table
(FADT)" of the ACPI Specification 6.5.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/baytrail/acpi.c
arch/x86/cpu/quark/acpi.c
arch/x86/cpu/tangier/acpi.c
arch/x86/lib/acpi_table.c
include/acpi/acpi_table.h