diff options
author | Grzegorz Bernacki <bernacki@google.com> | 2023-02-02 11:32:17 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-04-14 10:16:36 +0000 |
commit | 4232722401d59e8fcf0a8bd7902506945f1df835 (patch) | |
tree | 0640cd7d4ef7e98b747254127421cae8cb027053 /include | |
parent | 4ffe5a5da01205ede49e2f001d9c3e1412ea4d64 (diff) | |
download | chrome-ec-4232722401d59e8fcf0a8bd7902506945f1df835.tar.gz |
host_cmd: Add command to get/set s0ix counter
BUG=b:261869264
TEST=Tested on skyrim and nissa
BRANCH=none
Change-Id: I4f2cd0121b6eab445b9645037d607ae10daea835
Signed-off-by: Grzegorz Bernacki <bernacki@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4239443
Reviewed-by: Robert Zieba <robertzieba@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/ec_commands.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h index ecf499eb84..552dd1ca79 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -4984,6 +4984,23 @@ struct ec_response_device_event { } __ec_align4; /*****************************************************************************/ +/* Get s0ix counter */ +#define EC_CMD_GET_S0IX_COUNTER 0x00AB + +/* Flag use to reset the counter */ +#define EC_S0IX_COUNTER_RESET 0x1 + +struct ec_params_s0ix_cnt { + /* If EC_S0IX_COUNTER_RESET then reset otherwise get the counter */ + uint32_t flags; +} __ec_align4; + +struct ec_response_s0ix_cnt { + /* Value of the s0ix_counter */ + uint32_t s0ix_counter; +} __ec_align4; + +/*****************************************************************************/ /* Smart battery pass-through */ /* Get / Set 16-bit smart battery registers - OBSOLETE */ |