cpu/x86/smi_trigger: call pm_acpi_smi_cmd_port to get APMC SMI IO port
commitc4fbc9146dae55763ac0089644138c0ccb370897
authorFelix Held <felix-coreboot@felixheld.de>
Thu, 14 Dec 2023 19:59:54 +0000 (14 20:59 +0100)
committerFelix Held <felix-coreboot@felixheld.de>
Mon, 8 Jan 2024 13:10:12 +0000 (8 13:10 +0000)
treec3fd13b59e8cf51aa921a967e4657472d2639915
parent8fdf183175fa986b983617a83f4730d5fd9fb5e8
cpu/x86/smi_trigger: 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. Also update
the comment in apm_get_apmc to match what it's doing.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I0f36b8a0e93a82b8c6d23c5c5d8fbebb1bc6b0bc
Reviewed-on: https://review.coreboot.org/c/coreboot/+/79567
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <patrick.rudolph@9elements.com>
src/cpu/x86/smi_trigger.c