summaryrefslogtreecommitdiff
path: root/src/arch/arm64/acpi.c
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2023-06-29 20:32:37 +0200
committerLean Sheng Tan <sheng.tan@9elements.com>2023-08-02 15:53:26 +0000
commitba2e354af4ff1924310c0e10a61d44c0195c451f (patch)
tree27c12dcca8eac14b81b36a78ff1e7bf970f5fbbd /src/arch/arm64/acpi.c
parent8473e8fd5fd861da1e511dc143d9cf199d9dd89a (diff)
arch/arm64: Hook up FADT
Arm needs very little of FADT. Just a HW reduced model bit and low power idle bit set. Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Change-Id: I197975f91cd47e418c8583cb0e7b7ea2330363b2 Reviewed-on: https://review.coreboot.org/c/coreboot/+/76180 Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/arch/arm64/acpi.c')
-rw-r--r--src/arch/arm64/acpi.c7
1 files changed, 7 insertions, 0 deletions
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 <acpi/acpi.h>
+
+void arch_fill_fadt(acpi_fadt_t *fadt)
+{
+ fadt->flags |= ACPI_FADT_HW_REDUCED_ACPI | ACPI_FADT_LOW_PWR_IDLE_S0;
+}