soc/amd: use apm_get_apmc() in APMC SMI handler

Instead of open-coding this functionality, call the apm_get_apmc()
helper function.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: Iac6b614d900e51d91a0c155116a5edc29775ea99
Reviewed-on: https://review.coreboot.org/c/coreboot/+/79836
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 2024-01-05 22:15:46 +01:00
parent 21710ea3cd
commit 141955ac74
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ void handle_smi_store(void)
void fch_apmc_smi_handler(void) void fch_apmc_smi_handler(void)
{ {
const uint8_t cmd = inb(pm_acpi_smi_cmd_port()); const uint8_t cmd = apm_get_apmc();
switch (cmd) { switch (cmd) {
case APM_CNT_ACPI_ENABLE: case APM_CNT_ACPI_ENABLE:

View File

@ -21,7 +21,7 @@
*/ */
static void stoneyridge_fch_apmc_smi_handler(void) static void stoneyridge_fch_apmc_smi_handler(void)
{ {
const uint8_t cmd = inb(pm_acpi_smi_cmd_port()); const uint8_t cmd = apm_get_apmc();
switch (cmd) { switch (cmd) {
case APM_CNT_ACPI_ENABLE: case APM_CNT_ACPI_ENABLE: