diff options
author | Wei-Ning Huang <wnhuang@google.com> | 2017-05-05 05:40:26 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-05-11 05:31:53 -0700 |
commit | fc562bbf9bbe418a6e5995c13c004cdf5e111ce7 (patch) | |
tree | 3a38e636949f6d0215067c1e8d257c8358fdc85a /common/host_command.c | |
parent | 543bb07c90a302e955a3d1a80467770317761aac (diff) | |
download | chrome-ec-fc562bbf9bbe418a6e5995c13c004cdf5e111ce7.tar.gz |
rwsig: expose a new feature bit when RWSIG task is enabled
Expose EC_FEATURE_RWSIG if RWSIG task is enabled. This allows flashrom
to run EC_CMD_RWSIG_ACTION and abort RWSIG jump, then perform regular
firmware update flow.
BRANCH=none
BUG=b:37584134
TEST=on eve, `ectool --name=cros_tp inventory` should show 'RWSIG task'.
Change-Id: Iea14f4f01fab201767dccd07d711ae9e1b638f6a
Signed-off-by: Wei-Ning Huang <wnhuang@google.com>
Reviewed-on: https://chromium-review.googlesource.com/497788
Commit-Ready: Wei-Ning Huang <wnhuang@chromium.org>
Tested-by: Wei-Ning Huang <wnhuang@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'common/host_command.c')
-rw-r--r-- | common/host_command.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/host_command.c b/common/host_command.c index f5382b533f..33eb813bda 100644 --- a/common/host_command.c +++ b/common/host_command.c @@ -793,6 +793,9 @@ static int host_command_get_features(struct host_cmd_handler_args *args) #ifdef HAS_TASK_CENTROIDING | EC_FEATURE_MASK_0(EC_FEATURE_TOUCHPAD) #endif +#ifdef HAS_TASK_RWSIG + | EC_FEATURE_MASK_0(EC_FEATURE_RWSIG) +#endif ; return EC_RES_SUCCESS; } |