diff options
author | Wei-Ning Huang <wnhuang@google.com> | 2017-05-05 05:26:52 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-05-06 19:52:29 -0700 |
commit | a5a3fa2d13b4b18f1244ae408a778c5e88130a6f (patch) | |
tree | 1a7cea4384f5dc5c4be53131b71d96794bc7baec /include | |
parent | e7969f8245a3cde164caf1fa03cfe655c7e61d1e (diff) | |
download | chrome-ec-a5a3fa2d13b4b18f1244ae408a778c5e88130a6f.tar.gz |
rwsig: add host command for controlling rwsig task
Add new host command EC_CMD_RWSIG_ACTION for controlling rwsig task.
This allow us to make firmware stay at RO without toggling reset pin.
flashrom can use this host command and removed the need to use any
out-of-band pin to toggle the reset pin (and make RWSIG stay in RO).
BRANCH=none
BUG=b:37584134
TEST=on eve, `ectool --name=cros_tp rwsigaction abort` should prevent EC
from jumpping to RW after RWSIG check.
Change-Id: Ia435e4e3ea8ed612a1250d3bf755ca50e5db9d37
Signed-off-by: Wei-Ning Huang <wnhuang@google.com>
Reviewed-on: https://chromium-review.googlesource.com/497787
Commit-Ready: Wei-Ning Huang <wnhuang@chromium.org>
Tested-by: Wei-Ning Huang <wnhuang@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/ec_commands.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h index 92d25945e4..f8f8306af9 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -4053,6 +4053,18 @@ struct __ec_align4 ec_response_rwsig_check_status { uint32_t status; }; +/* For controlling RWSIG task */ +#define EC_CMD_RWSIG_ACTION 0x011D + +enum rwsig_action { + RWSIG_ACTION_ABORT = 0, /* Abort RWSIG and prevent jumping */ + RWSIG_ACTION_CONTINUE = 1, /* Jump to RW immediately */ +}; + +struct __ec_align4 ec_params_rwsig_action { + uint32_t action; +}; + #endif /* !__ACPI__ */ /*****************************************************************************/ |