mb/google/nissa/var/rull: Configure Acoustic noise mitigation
[coreboot2.git] / src / soc / amd / common / block / acpi / madt.c
blobb502053c29f6f2af3529a5f5f622a32ef7ad18c3
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <acpi/acpi.h>
4 #include <amdblocks/ioapic.h>
5 #include <device/device.h>
7 unsigned long acpi_fill_madt(unsigned long current)
9 struct device *dev = NULL;
10 while ((dev = dev_find_path(dev, DEVICE_PATH_DOMAIN)) != NULL) {
11 struct resource *res = probe_resource(dev, IOMMU_IOAPIC_IDX);
12 if (!res)
13 continue;
15 current += acpi_create_madt_ioapic_from_hw((acpi_madt_ioapic_t *)current,
16 res->base);
19 return current;