summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2020-11-11 14:13:48 -0700
committerCommit Bot <commit-bot@chromium.org>2020-11-20 20:32:27 +0000
commit0be00eec2444f1c40ff0e39c0a35c55d46798885 (patch)
tree2bc6b8d41b1384053e653abb3baa6144fc653552
parentf572254ba8c71aa6a6541c676d01fbeecdb9a6c0 (diff)
downloadchrome-ec-0be00eec2444f1c40ff0e39c0a35c55d46798885.tar.gz
zephyr: stub system_hibernate
Needed by power sequencing. Doing nothing will work fine for now. BUG=b:173787365 BRANCH=none TEST=compile with power sequencing Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: Ia4e48d92ebbee7a788e4515f6583095349aea0f3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2548306 Reviewed-by: Jett Rink <jettrink@chromium.org>
-rw-r--r--zephyr/shim/src/system.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/zephyr/shim/src/system.c b/zephyr/shim/src/system.c
index 1582b7d417..0baa9a5574 100644
--- a/zephyr/shim/src/system.c
+++ b/zephyr/shim/src/system.c
@@ -215,6 +215,14 @@ int system_jumped_to_this_image(void)
return jumped_to_image;
}
+void system_hibernate(uint32_t seconds, uint32_t microseconds)
+{
+ /*
+ * TODO(b:173787365): implement this. For now, doing nothing
+ * won't break anything, just will eat power.
+ */
+}
+
__test_only void system_common_reset_state(void)
{
jdata = 0;