x86/acpi: Add Kconfig to toggle 8259 reporting

Change-Id: If3c9783ebc41c103c915788139d91644b805f397
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/29832
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
diff --git a/src/arch/x86/acpi.c b/src/arch/x86/acpi.c
index f08a401..8a620bb 100644
--- a/src/arch/x86/acpi.c
+++ b/src/arch/x86/acpi.c
@@ -229,7 +229,8 @@
 	header->revision = get_acpi_table_revision(MADT);
 
 	madt->lapic_addr = LOCAL_APIC_ADDR;
-	madt->flags = 0x1; /* PCAT_COMPAT */
+	if (CONFIG(ACPI_HAVE_PCAT_8259))
+		madt->flags |= 1;
 
 	current = acpi_fill_madt(current);