From ba2e354af4ff1924310c0e10a61d44c0195c451f Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Thu, 29 Jun 2023 20:32:37 +0200 Subject: [PATCH] arch/arm64: Hook up FADT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Arm needs very little of FADT. Just a HW reduced model bit and low power idle bit set. Signed-off-by: Arthur Heymans Change-Id: I197975f91cd47e418c8583cb0e7b7ea2330363b2 Reviewed-on: https://review.coreboot.org/c/coreboot/+/76180 Reviewed-by: Kyösti Mälkki Reviewed-by: Nico Huber Tested-by: build bot (Jenkins) --- src/arch/arm64/Makefile.inc | 1 + src/arch/arm64/acpi.c | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 src/arch/arm64/acpi.c diff --git a/src/arch/arm64/Makefile.inc b/src/arch/arm64/Makefile.inc index a5b034abce..f9ddca5cdd 100644 --- a/src/arch/arm64/Makefile.inc +++ b/src/arch/arm64/Makefile.inc @@ -118,6 +118,7 @@ ramstage-y += memmove.S ramstage-$(CONFIG_ARM64_USE_ARM_TRUSTED_FIRMWARE) += bl31.c ramstage-y += transition.c transition_asm.S ramstage-$(CONFIG_PAYLOAD_FIT_SUPPORT) += fit_payload.c +ramstage-$(CONFIG_HAVE_ACPI_SUPPORT) += acpi.c rmodules_arm64-y += memset.S rmodules_arm64-y += memcpy.S diff --git a/src/arch/arm64/acpi.c b/src/arch/arm64/acpi.c new file mode 100644 index 0000000000..30ccc303bf --- /dev/null +++ b/src/arch/arm64/acpi.c @@ -0,0 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +#include + +void arch_fill_fadt(acpi_fadt_t *fadt) +{ + fadt->flags |= ACPI_FADT_HW_REDUCED_ACPI | ACPI_FADT_LOW_PWR_IDLE_S0; +}