arch/x86/acpi: call pm_acpi_smi_cmd_port to get APMC SMI IO port

Instead of hard-coding the APMC SMI command IO port in the FADT, call
pm_acpi_smi_cmd_port() to get the APMC SMI command IO port.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I731c780bc6db7e7fd59688340bab1da86fc93c11
Reviewed-on: https://review.coreboot.org/c/coreboot/+/79565
Reviewed-by: Jérémy Compostella <jeremy.compostella@intel.com>
Reviewed-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Felix Held 2023-12-14 20:20:40 +01:00
parent 6759ad39ad
commit 8fdf183175
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ void arch_fill_fadt(acpi_fadt_t *fadt)
}
if (permanent_smi_handler()) {
fadt->smi_cmd = APM_CNT;
fadt->smi_cmd = pm_acpi_smi_cmd_port();
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
fadt->acpi_disable = APM_CNT_ACPI_DISABLE;
}