soc/intel/apollolake: Use newly added pmc_read_pm1_control
BUG=b:67874513 Change-Id: I6d5a76122b7d6e508e5ff3f4099e5d706fb48f9d Signed-off-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: https://review.coreboot.org/22082 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
ab6201835a
commit
43810d9332
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue