summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/amd/common/block/cpu/smm/smi_apmc.c2
-rw-r--r--src/soc/amd/stoneyridge/smihandler.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/amd/common/block/cpu/smm/smi_apmc.c b/src/soc/amd/common/block/cpu/smm/smi_apmc.c
index 0eab86c9da..9df6ae3132 100644
--- a/src/soc/amd/common/block/cpu/smm/smi_apmc.c
+++ b/src/soc/amd/common/block/cpu/smm/smi_apmc.c
@@ -91,7 +91,7 @@ void handle_smi_store(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) {
case APM_CNT_ACPI_ENABLE:
diff --git a/src/soc/amd/stoneyridge/smihandler.c b/src/soc/amd/stoneyridge/smihandler.c
index a8521c5bda..f962fa0add 100644
--- a/src/soc/amd/stoneyridge/smihandler.c
+++ b/src/soc/amd/stoneyridge/smihandler.c
@@ -21,7 +21,7 @@
*/
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) {
case APM_CNT_ACPI_ENABLE: