summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorPaul Menzel <pmenzel@molgen.mpg.de>2019-02-08 15:19:20 +0100
committerPatrick Georgi <pgeorgi@google.com>2019-02-15 16:24:02 +0000
commit8ca2af1c0d3a529bc7a9e6bd8bae16f9b941d42d (patch)
tree799003cfe2006faac092292cccb66c166ebdd44c /src/soc
parent223ddc298a1a8e25a493987d84c629ed152821d1 (diff)
downloadcoreboot-8ca2af1c0d3a529bc7a9e6bd8bae16f9b941d42d.tar.xz
src: Use macro `ACPI_FADT_LEGACY_FREE`
Replace all instances, where 0 is used by the macro/define `ACPI_FADT_LEGACY_FREE`. Change-Id: I226b334620e0cdafc7639c7a76ea3a523ae53a74 Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de> Reviewed-on: https://review.coreboot.org/c/31289 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/fsp_broadwell_de/acpi.c3
-rw-r--r--src/soc/intel/skylake/acpi.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/soc/intel/fsp_broadwell_de/acpi.c b/src/soc/intel/fsp_broadwell_de/acpi.c
index 71aa0a3459..fa45ea775c 100644
--- a/src/soc/intel/fsp_broadwell_de/acpi.c
+++ b/src/soc/intel/fsp_broadwell_de/acpi.c
@@ -18,6 +18,7 @@
#include <string.h>
#include <types.h>
+#include <arch/acpi.h>
#include <arch/acpigen.h>
#include <arch/io.h>
#include <arch/smp/mpspec.h>
@@ -222,7 +223,7 @@ void acpi_fill_in_fadt(acpi_fadt_t *fadt, acpi_facs_t *facs, void *dsdt)
fadt->day_alrm = 0x0D;
fadt->mon_alrm = 0x00;
fadt->century = 0x00;
- fadt->iapc_boot_arch = 0;
+ fadt->iapc_boot_arch = ACPI_FADT_LEGACY_FREE;
fadt->flags = ACPI_FADT_WBINVD | ACPI_FADT_C1_SUPPORTED |
ACPI_FADT_C2_MP_SUPPORTED | ACPI_FADT_SLEEP_BUTTON |
diff --git a/src/soc/intel/skylake/acpi.c b/src/soc/intel/skylake/acpi.c
index f6eb6595cb..3ad1e505f1 100644
--- a/src/soc/intel/skylake/acpi.c
+++ b/src/soc/intel/skylake/acpi.c
@@ -275,7 +275,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
fadt->day_alrm = 0xd;
fadt->mon_alrm = 0x00;
fadt->century = 0x00;
- fadt->iapc_boot_arch = 0;
+ fadt->iapc_boot_arch = ACPI_FADT_LEGACY_FREE;
if (!IS_ENABLED(CONFIG_NO_FADT_8042))
fadt->iapc_boot_arch |= ACPI_FADT_8042;