summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2016-06-27 16:59:37 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-06-28 19:27:58 -0700
commit268237828a773c5797d3a8fc91acef8edc9b6818 (patch)
tree09ec94e61b4b7f63cd2854f545c1da0d281a8c60
parent369fbaf052dd76e74c3805302dd27f11c7e865bf (diff)
downloadchrome-ec-268237828a773c5797d3a8fc91acef8edc9b6818.tar.gz
ec_commands: Add suspend control needed for Skylake
Changes were submitted for ec_commands.h but only in the braswell tree. Merge in ToT for future reference. BRANCH=none BUG=chrome-os-partner:50627 TEST=compile. Change-Id: I74f6ce3c5fd2a628879593a65506d10c44ee574d Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/356551
-rw-r--r--include/ec_commands.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h
index 18343ef104..af6d5948c7 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -3067,6 +3067,23 @@ struct ec_response_hibernation_delay {
uint32_t hibernate_delay;
};
+/* Inform the EC when entering a sleep state */
+#define EC_CMD_HOST_SLEEP_EVENT 0xa9
+
+enum host_sleep_event {
+ HOST_SLEEP_EVENT_S3_SUSPEND = 1,
+ HOST_SLEEP_EVENT_S3_RESUME = 2,
+ HOST_SLEEP_EVENT_S0IX_SUSPEND = 3,
+ HOST_SLEEP_EVENT_S0IX_RESUME = 4
+};
+
+struct ec_params_host_sleep_event {
+ uint8_t sleep_event;
+} __packed;
+
+struct ec_response_host_sleep_event {
+ uint8_t sleep_event;
+} __packed;
/*****************************************************************************/
/* Smart battery pass-through */