diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2023-12-14 20:20:40 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2024-01-08 13:09:56 +0000 |
commit | 8fdf183175fa986b983617a83f4730d5fd9fb5e8 (patch) | |
tree | dd3b360bde47e0d935f62528845ea5552bc5e587 /src/arch/x86/acpi.c | |
parent | 6759ad39ad7d669f8fe712b6dcbb927092043497 (diff) |
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>
Diffstat (limited to 'src/arch/x86/acpi.c')
-rw-r--r-- | src/arch/x86/acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/acpi.c b/src/arch/x86/acpi.c index 018cdf5cc3..2497143680 100644 --- a/src/arch/x86/acpi.c +++ b/src/arch/x86/acpi.c @@ -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; } |