diff options
author | Rajesh Kumar <rajesh3.kumar@intel.com> | 2022-07-13 12:17:14 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-08-12 21:47:06 +0000 |
commit | 6d64c0adacbfb81fab4ca1d0f2eeb3c55a8fa43b (patch) | |
tree | 5630a0ae6ee5a028d858dc72dbb03f889cb51aff /zephyr/subsys/ap_pwrseq/include | |
parent | 8bbb22cba3aac9cda691f23ed2116a694fcef5f1 (diff) | |
download | chrome-ec-6d64c0adacbfb81fab4ca1d0f2eeb3c55a8fa43b.tar.gz |
zephyr: ap_pwrseq: Add S0IX error recovery support
This CL supports s0ix error recovery to ensure the AP doesn't get itself
stuck in a state where it's no longer in a sleep state (S0ix/S3), but
from the Linux perspective is still suspended.
BUG=none
BRANCH=none
TEST=zmake build nivviks
Tested using 'powerd_dbus_suspend' on AP and observed timeout and
hang detected through EC logs.
Signed-off-by: Rajesh Kumar <rajesh3.kumar@intel.com>
Change-Id: Iaf37b2afc7e1bdec251b9c21f6a3f131acab6a50
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3760670
Reviewed-by: Andrew McRae <amcrae@google.com>
Diffstat (limited to 'zephyr/subsys/ap_pwrseq/include')
-rw-r--r-- | zephyr/subsys/ap_pwrseq/include/ap_power_host_sleep.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/zephyr/subsys/ap_pwrseq/include/ap_power_host_sleep.h b/zephyr/subsys/ap_pwrseq/include/ap_power_host_sleep.h index 85b4ffe2ff..287d438a63 100644 --- a/zephyr/subsys/ap_pwrseq/include/ap_power_host_sleep.h +++ b/zephyr/subsys/ap_pwrseq/include/ap_power_host_sleep.h @@ -56,4 +56,17 @@ enum ap_power_sleep_type ap_power_sleep_get_notify(void); void ap_power_sleep_notify_transition(enum ap_power_sleep_type check_state); #endif /* CONFIG_AP_PWRSEQ_S0IX */ +/* + * Get sleep timeout from host command context + */ +uint16_t host_get_sleep_timeout(void); + +/* + * Set sleep transitions for host command response + * + * @param val sleep transitions + * + */ +void host_set_sleep_transitions(uint32_t val); + #endif /* __AP_PWRSEQ_HOST_SLEEP_H */ |