summaryrefslogtreecommitdiff
path: root/include/power.h
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@chromium.org>2017-09-21 11:12:16 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-09-22 10:18:48 -0700
commitf1375bec42b6862746ed026d5c3f6a5f97d3e7ac (patch)
tree30c9edeb24c49f5ac4da61d0ecdcc87ef6c63f25 /include/power.h
parent6f07b9212c72bc467d3c284ca2c8cebf51dd0a98 (diff)
downloadchrome-ec-f1375bec42b6862746ed026d5c3f6a5f97d3e7ac.tar.gz
power: Provide chipset and board callbacks on host sleep event command
This change allows chipset and board to perform any action when host indicates intention to enter sleep state. Chipset can take action like enable/disable power signal interrupts and boards can enable/disable decay of VRs on host intent to enter/exit S0ix. BUG=b:65732924 BRANCH=None TEST=make -j buildall Change-Id: I6298825d4ee96a07b93523c2f366527ae2be8a27 Signed-off-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/677498 Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'include/power.h')
-rw-r--r--include/power.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/power.h b/include/power.h
index 9c9e912c6d..cdfcbcd173 100644
--- a/include/power.h
+++ b/include/power.h
@@ -143,6 +143,22 @@ void power_set_pause_in_s5(int pause);
*/
enum host_sleep_event power_get_host_sleep_state(void);
+/**
+ * Provide callback to allow chipset to take any action on host sleep event
+ * command.
+ *
+ * @param state Current host sleep state updated by the host.
+ */
+void power_chipset_handle_host_sleep_event(enum host_sleep_event state);
+
+/**
+ * Provide callback to allow board to take any action on host sleep event
+ * command.
+ *
+ * @param state Current host sleep state updated by the host.
+ */
+void power_board_handle_host_sleep_event(enum host_sleep_event state);
+
#ifdef CONFIG_POWER_S0IX
/**
* Reset the sleep state reported by the host.