summaryrefslogtreecommitdiff
path: root/src/soc/intel/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/common')
-rw-r--r--src/soc/intel/common/block/pmc/pmclib.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/soc/intel/common/block/pmc/pmclib.c b/src/soc/intel/common/block/pmc/pmclib.c
index 1662451a18..ea365d06d1 100644
--- a/src/soc/intel/common/block/pmc/pmclib.c
+++ b/src/soc/intel/common/block/pmc/pmclib.c
@@ -475,6 +475,11 @@ void pmc_global_reset_enable(bool enable)
int platform_is_resuming(void)
{
+ /* Read power state from PMC data structure */
+ if (ENV_RAMSTAGE)
+ return acpi_get_sleep_type() == ACPI_S3;
+
+ /* Read power state from PMC ABASE */
if (!(inw(ACPI_BASE_ADDRESS + PM1_STS) & WAK_STS))
return 0;