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>
This commit is contained in:
Kyösti Mälkki 2022-11-18 13:23:52 +02:00
parent dd96ab6987
commit a5fa534705
6 changed files with 9 additions and 15 deletions

View File

@ -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

View File

@ -282,6 +282,7 @@ void acpi_create_madt(acpi_madt_t *madt)
if (CONFIG(ACPI_HAVE_PCAT_8259))
madt->flags |= 1;
if (!CONFIG(ACPI_NO_MADT))
current = acpi_fill_madt(current);
/* (Re)calculate length and checksum. */

View File

@ -9,6 +9,7 @@ config BASE_ASUS_P2B_D
config BOARD_SPECIFIC_OPTIONS
def_bool y
select ACPI_NO_MADT
select CPU_INTEL_SLOT_1
select NORTHBRIDGE_INTEL_I440BX
select SOUTHBRIDGE_INTEL_I82371EB

View File

@ -1,9 +0,0 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <acpi/acpi.h>
unsigned long acpi_fill_madt(unsigned long current)
{
/* mainboard has no ioapic */
return current;
}

View File

@ -9,6 +9,7 @@ if SOC_INTEL_QUARK
config CPU_SPECIFIC_OPTIONS
def_bool y
select ACPI_NO_MADT
select ARCH_X86
select NO_ECAM_MMCONF_SUPPORT
select NO_SMM

View File

@ -5,11 +5,6 @@
#include <soc/acpi.h>
#include <soc/ramstage.h>
unsigned long acpi_fill_madt(unsigned long current)
{
return current;
}
void acpi_fill_fadt(acpi_fadt_t *fadt)
{
struct device *dev = pcidev_on_root(PCI_DEVICE_NUMBER_QNC_LPC,