diff options
author | Yuval Peress <peress@chromium.org> | 2020-10-29 21:57:51 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-10-30 21:56:03 +0000 |
commit | 916603a537b7aa4d59f9deac23056d2dc89933ea (patch) | |
tree | ccd789972b597be95d5300bee5a4fba4d7b36f00 /zephyr | |
parent | c3d8133b6df94981b8f11c289d165344023b2d46 (diff) | |
download | chrome-ec-916603a537b7aa4d59f9deac23056d2dc89933ea.tar.gz |
Zephyr: add sleep_mask
platform/ec/include/system.h defines an extern uint32_t sleep_mask
which is used in a few modules, but specifically for our interest
right now in enable_sleep and disable_sleep inline functions also
defined in include/system.h. These functions are used in the following
CL when shimming common/i2c_master.c and will likely be used in other
.c files that will be shimmed in later.
Note that in platform/ec this is also defined in common/system.c it
just wasn't needed until now.
BRANCH=none
BUG=b:171302975
TEST=Built zephyr-chrome/projects/experimental/volteer
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I026be635fad85688301f1009c13722c0f788227f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2508761
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'zephyr')
-rw-r--r-- | zephyr/shim/src/system.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/zephyr/shim/src/system.c b/zephyr/shim/src/system.c index 8236c49c19..d9b199e917 100644 --- a/zephyr/shim/src/system.c +++ b/zephyr/shim/src/system.c @@ -11,6 +11,9 @@ #include <string.h> #include <errno.h> +/* Ongoing actions preventing going into deep-sleep mode. */ +uint32_t sleep_mask; + /* Round up to a multiple of 4. */ #define ROUNDUP4(x) (((x) + 3) & ~3) |