mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 01:21:49 +00:00
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>
This commit is contained in:
committed by
chrome-bot
parent
543bb07c90
commit
fc562bbf9b
@@ -792,6 +792,9 @@ static int host_command_get_features(struct host_cmd_handler_args *args)
|
||||
#endif
|
||||
#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;
|
||||
|
||||
@@ -1080,6 +1080,8 @@ enum ec_feature_code {
|
||||
EC_FEATURE_FINGERPRINT = 28,
|
||||
/* The MCU exposes a Touchpad */
|
||||
EC_FEATURE_TOUCHPAD = 29,
|
||||
/* The MCU has RWSIG task enabled */
|
||||
EC_FEATURE_RWSIG = 30,
|
||||
};
|
||||
|
||||
#define EC_FEATURE_MASK_0(event_code) (1UL << (event_code % 32))
|
||||
|
||||
@@ -515,6 +515,7 @@ static const char * const ec_feature_names[] = {
|
||||
[EC_FEATURE_USBC_SS_MUX_VIRTUAL] = "Host-controlled USB-C SS mux",
|
||||
[EC_FEATURE_RTC] = "Real-time clock",
|
||||
[EC_FEATURE_TOUCHPAD] = "Touchpad",
|
||||
[EC_FEATURE_RWSIG] = "RWSIG task",
|
||||
};
|
||||
|
||||
int cmd_inventory(int argc, char *argv[])
|
||||
|
||||
Reference in New Issue
Block a user