From 8fdf183175fa986b983617a83f4730d5fd9fb5e8 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Thu, 14 Dec 2023 20:20:40 +0100 Subject: arch/x86/acpi: call pm_acpi_smi_cmd_port to get APMC SMI IO port MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Change-Id: I731c780bc6db7e7fd59688340bab1da86fc93c11 Reviewed-on: https://review.coreboot.org/c/coreboot/+/79565 Reviewed-by: Jérémy Compostella Reviewed-by: Patrick Rudolph Tested-by: build bot (Jenkins) --- src/arch/x86/acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/arch/x86') 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; } -- cgit v1.2.3