summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2020-02-14 15:49:48 -0800
committerCommit Bot <commit-bot@chromium.org>2020-02-15 23:54:21 +0000
commit3128f5988eef8f1e61d76b1fd754f43d840322ca (patch)
tree8c0d5e17f4277f4610aa9fb56dad3165c1b31d20
parent1c47eb53c19749e1d81c7066ac4e8e1b023c8a6e (diff)
downloadchrome-ec-3128f5988eef8f1e61d76b1fd754f43d840322ca.tar.gz
sc7180, sdm845: Disable idle task deep sleep during sysjump
When sysjump to RW, the sleep mask is cleared. Should mask the AP_RUN bit to prevent deep sleep. BRANCH=None BUG=b:149337916 TEST=Reboot EC/AP, sysjump to rw; checked dsleep AP_RUN bit set. Change-Id: I7b11132eb464bf6d28432884b90ba292e7f56847 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2057971 Reviewed-by: Stephen Boyd <swboyd@chromium.org>
-rw-r--r--power/sc7180.c2
-rw-r--r--power/sdm845.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/power/sc7180.c b/power/sc7180.c
index 7788f04833..7919218492 100644
--- a/power/sc7180.c
+++ b/power/sc7180.c
@@ -420,6 +420,8 @@ enum power_state power_chipset_init(void)
if (power_get_signals() & IN_POWER_GOOD) {
CPRINTS("SOC ON");
init_power_state = POWER_S0;
+ /* Disable idle task deep sleep when in S0 */
+ disable_sleep(SLEEP_MASK_AP_RUN);
} else {
CPRINTS("SOC OFF");
init_power_state = POWER_G3;
diff --git a/power/sdm845.c b/power/sdm845.c
index a799ec5883..85bfa33438 100644
--- a/power/sdm845.c
+++ b/power/sdm845.c
@@ -416,6 +416,8 @@ enum power_state power_chipset_init(void)
if (power_get_signals() & IN_POWER_GOOD) {
CPRINTS("SOC ON");
init_power_state = POWER_S0;
+ /* Disable idle task deep sleep when in S0 */
+ disable_sleep(SLEEP_MASK_AP_RUN);
} else {
CPRINTS("SOC OFF");
init_power_state = POWER_G3;