summaryrefslogtreecommitdiff
path: root/zephyr/shim/src/ztest_system.c
diff options
context:
space:
mode:
authorYuval Peress <peress@chromium.org>2021-01-15 12:06:31 -0700
committerCommit Bot <commit-bot@chromium.org>2021-02-03 23:49:02 +0000
commit41f52b709177f7ddff01f5b7a568c663bc495897 (patch)
tree147857c0886e21b1a8d62c2eef0b8c24dd548ce5 /zephyr/shim/src/ztest_system.c
parent236e03723b4eb389a7846257ac5b6fb9e2faab5c (diff)
downloadchrome-ec-41f52b709177f7ddff01f5b7a568c663bc495897.tar.gz
zephyr: flash/system: enable common/flash.c & common/system.c
Bring both flash.c and system.c into the build. zephyr/shim/src/system.c now includes only code that is needed to stub out the chip specific system.c implementation in platform/ec (which is now using the devicetree values). BRANCH=none BUG=b:176828988, b:174481378 TEST=zmake testall TEST=build volteer, flash, and test flashinfo. Cq-Depend: chromium:2631353 Change-Id: I5c542fca01dcc4af98401bcbbf402e579cd45e36 Signed-off-by: Yuval Peress <peress@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2649463 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'zephyr/shim/src/ztest_system.c')
-rw-r--r--zephyr/shim/src/ztest_system.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/zephyr/shim/src/ztest_system.c b/zephyr/shim/src/ztest_system.c
new file mode 100644
index 0000000000..8c0450cd7e
--- /dev/null
+++ b/zephyr/shim/src/ztest_system.c
@@ -0,0 +1,19 @@
+/* Copyright 2021 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#include "system.h"
+
+/* Ongoing actions preventing going into deep-sleep mode. */
+uint32_t sleep_mask;
+
+int system_add_jump_tag(uint16_t tag, int version, int size, const void *data)
+{
+ return EC_SUCCESS;
+}
+
+const uint8_t *system_get_jump_tag(uint16_t tag, int *version, int *size)
+{
+ return NULL;
+}