From 43810d933209ddf7ca0622ff838e6f02f4d8f810 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Mon, 16 Oct 2017 22:22:46 -0700 Subject: soc/intel/apollolake: Use newly added pmc_read_pm1_control BUG=b:67874513 Change-Id: I6d5a76122b7d6e508e5ff3f4099e5d706fb48f9d Signed-off-by: Furquan Shaikh Reviewed-on: https://review.coreboot.org/22082 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/soc/intel/apollolake/pmutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/intel/apollolake/pmutil.c b/src/soc/intel/apollolake/pmutil.c index b9ed5b458d..5fcefd761b 100644 --- a/src/soc/intel/apollolake/pmutil.c +++ b/src/soc/intel/apollolake/pmutil.c @@ -86,7 +86,7 @@ const char *const *soc_smi_sts_array(size_t *a) */ uint32_t soc_get_smi_status(uint32_t generic_sts) { - if (generic_sts == 0 && !(inl(ACPI_BASE_ADDRESS + PM1_CNT) & SCI_EN)) { + if (generic_sts == 0 && !(pmc_read_pm1_control() & SCI_EN)) { uint16_t pm1_sts = inw(ACPI_BASE_ADDRESS + PM1_STS); /* Fake PM1 status bit if power button pressed. */ -- cgit v1.2.3