soc/amd/genoa/fch: add fch_init_acpi_ports

Make sure that the APMC SMI command IO port is configured to what
coreboot expects and enable the SMI generation for the APMC SMI command
port.

Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: Ie4fc259dea125a16556a01b80a3d5e6fb476044a
Reviewed-on: https://review.coreboot.org/c/coreboot/+/79531
Reviewed-by: Varshit Pandya <pandyavarshit@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
This commit is contained in:
Felix Held
2023-12-14 18:52:40 +01:00
parent 7f19d20594
commit f0c67127a9

View File

@@ -74,9 +74,17 @@ static void set_pci_irqs(void)
/* TODO: PIRQ configuration */
}
static void fch_init_acpi_ports(void)
{
/* Configure and enable APMC SMI Command Port */
pm_write16(PM_ACPI_SMI_CMD, APM_CNT);
configure_smi(SMITYPE_SMI_CMD_PORT, SMI_MODE_SMI);
}
static void fch_init(void *unused)
{
set_pci_irqs();
fch_init_acpi_ports();
}
/*