soc/amd/genoa: Hook up IVRS generation
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Change-Id: I0a6eaf43ab6da4bb4a0cc0bbefb5b75c206348f1
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76534
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
diff --git a/src/soc/amd/genoa/acpi.c b/src/soc/amd/genoa/acpi.c
index 1f7b7bf..2f7af7a 100644
--- a/src/soc/amd/genoa/acpi.c
+++ b/src/soc/amd/genoa/acpi.c
@@ -9,6 +9,8 @@
#include <amdblocks/data_fabric.h>
#include <arch/ioapic.h>
#include <console/console.h>
+#include <device/device.h>
+#include <soc/acpi.h>
#include <vendorcode/amd/opensil/genoa_poc/opensil.h>
/* TODO: this can go in a common place */
@@ -53,6 +55,20 @@
fadt->x_firmware_ctl_h = 0;
}
+unsigned long soc_acpi_write_tables(const struct device *device, unsigned long current,
+ struct acpi_rsdp *rsdp)
+{
+ /* IVRS */
+ acpi_ivrs_t *ivrs;
+ current = acpi_align_current(current);
+ ivrs = (acpi_ivrs_t *)current;
+ acpi_create_ivrs(ivrs, acpi_fill_ivrs);
+ current += ivrs->header.length;
+ acpi_add_table(rsdp, ivrs);
+
+ return current;
+}
+
/* There are only the following 2 C-states reported by the reference firmware */
const acpi_cstate_t cstate_cfg_table[] = {
[0] = {