aboutsummaryrefslogtreecommitdiff
path: root/src/acpi
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2022-11-18 13:23:52 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2022-11-25 15:03:47 +0000
commita5fa5347051cafe627775ef48c2c9b7d7232ee16 (patch)
tree7ba802737b06978a13005ce20166f02c76cb9da0 /src/acpi
parentdd96ab698757c6b6f05612d92f38088e8f7069e5 (diff)
ACPI: Flag boards with ACPI_NO_MADT
These boards do no fill MADT with useful information. Change-Id: Ie61e4e4b03c9b7fcd70aba7a2bd71eadd6f4dab1 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/69777 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/acpi')
-rw-r--r--src/acpi/Kconfig5
-rw-r--r--src/acpi/acpi.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/src/acpi/Kconfig b/src/acpi/Kconfig
index 7afff4e7e7..816f9fb31e 100644
--- a/src/acpi/Kconfig
+++ b/src/acpi/Kconfig
@@ -30,6 +30,11 @@ config ACPI_SOC_NVS
Set to indicate <soc/nvs.h> exists for the platform with a definition
for global_nvs.
+config ACPI_NO_MADT
+ bool
+ help
+ Selected by platforms that don't expose a useful MADT.
+
config ACPI_NO_PCAT_8259
bool
help
diff --git a/src/acpi/acpi.c b/src/acpi/acpi.c
index f6a36f80f0..c5672999b2 100644
--- a/src/acpi/acpi.c
+++ b/src/acpi/acpi.c
@@ -282,7 +282,8 @@ void acpi_create_madt(acpi_madt_t *madt)
if (CONFIG(ACPI_HAVE_PCAT_8259))
madt->flags |= 1;
- current = acpi_fill_madt(current);
+ if (!CONFIG(ACPI_NO_MADT))
+ current = acpi_fill_madt(current);
/* (Re)calculate length and checksum. */
header->length = current - (unsigned long)madt;