soc/amd/cezanne: Populate PCI_INTR registers

This uses the new FSP PCI methods to pull the routing table and populate
the pirq data structure.

BUG=b:184766519
TEST=Boot guybrush and verify we get Got IRQ 0x1F (disabled) messages

Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Change-Id: Ie21229cc2fb4fd5b85c0b9e933f7b43af24864b0
Reviewed-on: https://review.coreboot.org/c/coreboot/+/52914
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
Raul E Rangel
2021-05-04 15:42:09 -06:00
committed by Felix Held
parent 7b84b02492
commit fd7ed87746
2 changed files with 7 additions and 0 deletions

View File

@ -61,6 +61,7 @@ config SOC_SPECIFIC_OPTIONS
select SOC_AMD_COMMON_BLOCK_TSC_FAM17H_19H
select SOC_AMD_COMMON_BLOCK_UART
select SOC_AMD_COMMON_BLOCK_UCODE
select SOC_AMD_COMMON_FSP_PCI
select SSE2
select UDK_2017_BINDING
select X86_AMD_FIXED_MTRRS

View File

@ -131,6 +131,12 @@ static void set_pci_irqs(void *unused)
{
/* Write PCI_INTR regs 0xC00/0xC01 */
write_pci_int_table();
/* pirq_data is consumed by `write_pci_cfg_irqs` */
populate_pirq_data();
/* Write IRQs for all devicetree enabled devices */
write_pci_cfg_irqs();
}
/*