soc/amd/cezanne: Generate IVRS for cezanne
Generate IVRS for cezanne using common IVRS generation code. BUG=b:190515051 TEST=Build cezanne coreboot image. Compare IVRS table with agesa generated tables. Signed-off-by: Jason Glenesk <jason.glenesk@amd.corp-partner.google.com> Change-Id: Ie15addba62ec7da25a7452512b6871e46c61b0a1 Reviewed-on: https://review.coreboot.org/c/coreboot/+/56451 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
parent
f934fae032
commit
8d35428331
|
@ -42,6 +42,7 @@ config SOC_SPECIFIC_OPTIONS
|
||||||
select SOC_AMD_COMMON_BLOCK_ACPIMMIO
|
select SOC_AMD_COMMON_BLOCK_ACPIMMIO
|
||||||
select SOC_AMD_COMMON_BLOCK_ACPI_ALIB
|
select SOC_AMD_COMMON_BLOCK_ACPI_ALIB
|
||||||
select SOC_AMD_COMMON_BLOCK_ACPI_GPIO
|
select SOC_AMD_COMMON_BLOCK_ACPI_GPIO
|
||||||
|
select SOC_AMD_COMMON_BLOCK_ACPI_IVRS
|
||||||
select SOC_AMD_COMMON_BLOCK_AOAC
|
select SOC_AMD_COMMON_BLOCK_AOAC
|
||||||
select SOC_AMD_COMMON_BLOCK_APOB
|
select SOC_AMD_COMMON_BLOCK_APOB
|
||||||
select SOC_AMD_COMMON_BLOCK_BANKED_GPIOS
|
select SOC_AMD_COMMON_BLOCK_BANKED_GPIOS
|
||||||
|
|
|
@ -10,8 +10,17 @@
|
||||||
uintptr_t agesa_write_acpi_tables(const struct device *device, uintptr_t current,
|
uintptr_t agesa_write_acpi_tables(const struct device *device, uintptr_t current,
|
||||||
acpi_rsdp_t *rsdp)
|
acpi_rsdp_t *rsdp)
|
||||||
{
|
{
|
||||||
|
acpi_ivrs_t *ivrs;
|
||||||
|
|
||||||
/* add ALIB SSDT from HOB */
|
/* add ALIB SSDT from HOB */
|
||||||
current = add_agesa_fsp_acpi_table(AMD_FSP_ACPI_ALIB_HOB_GUID, "ALIB", rsdp, current);
|
current = add_agesa_fsp_acpi_table(AMD_FSP_ACPI_ALIB_HOB_GUID, "ALIB", rsdp, current);
|
||||||
|
|
||||||
|
/* IVRS */
|
||||||
|
current = ALIGN(current, 8);
|
||||||
|
ivrs = (acpi_ivrs_t *) current;
|
||||||
|
acpi_create_ivrs(ivrs, acpi_fill_ivrs);
|
||||||
|
current += ivrs->header.length;
|
||||||
|
acpi_add_table(rsdp, ivrs);
|
||||||
|
|
||||||
return current;
|
return current;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue