aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/common/block/include/intelblocks
diff options
context:
space:
mode:
authorMarc Jones <marcjones@sysproconsulting.com>2020-12-02 11:24:00 -0700
committerHung-Te Lin <hungte@chromium.org>2020-12-21 02:35:21 +0000
commit847043c2074e855e48f820fbc193a2c860827e1b (patch)
tree353c530299f491dd16dbb661c5b13480e34f87e7 /src/soc/intel/common/block/include/intelblocks
parentcbe12440713f66d1f05ecc34a0dcc6b6c8c73b4e (diff)
soc/intel/common/block/acpi: Add soc MADT IOAPIC hook
Add a hook for SOCs to provide an IOAPIC MADT table. If the SOC doesn't provide a table then a standard setting is used. Change-Id: Ic818a634e4912d88ef93971deb4da5ab708c9020 Signed-off-by: Marc Jones <marcjones@sysproconsulting.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48246 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Jay Talbott <JayTalbott@sysproconsulting.com> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/soc/intel/common/block/include/intelblocks')
-rw-r--r--src/soc/intel/common/block/include/intelblocks/acpi.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/soc/intel/common/block/include/intelblocks/acpi.h b/src/soc/intel/common/block/include/intelblocks/acpi.h
index cd3a309c21..d76d95ab11 100644
--- a/src/soc/intel/common/block/include/intelblocks/acpi.h
+++ b/src/soc/intel/common/block/include/intelblocks/acpi.h
@@ -68,4 +68,16 @@ void soc_power_states_generation(int core_id, int cores_per_package);
*/
int common_calculate_power_ratio(int tdp, int p1_ratio, int ratio);
+struct madt_ioapic_info {
+ u8 id;
+ u32 addr;
+ u32 gsi_base;
+};
+
+/*
+ * Returns a table of MADT ioapic_info entries and the number of entries
+ * If the SOC doesn't implement this hook a default ioapic setting is used.
+ */
+const struct madt_ioapic_info *soc_get_ioapic_info(size_t *entries);
+
#endif /* _SOC_INTEL_COMMON_BLOCK_ACPI_H_ */