提交 a0d50b31 编写于 作者: G Gwendal Grignou 提交者: Lee Jones

mfd: cros_ec: Add API for rwsig

Add command to retrieve signature of image stored in the RW memory
slot(s).
Signed-off-by: NGwendal Grignou <gwendal@chromium.org>
Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com>
Acked-by: NBenson Leung <bleung@chromium.org>
Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
上级 da038d6e
......@@ -5043,6 +5043,32 @@ struct ec_response_pd_chip_info_v1 {
};
} __ec_align2;
/* Run RW signature verification and get status */
#define EC_CMD_RWSIG_CHECK_STATUS 0x011C
struct ec_response_rwsig_check_status {
uint32_t status;
} __ec_align4;
/* 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_params_rwsig_action {
uint32_t action;
} __ec_align4;
/* Run verification on a slot */
#define EC_CMD_EFS_VERIFY 0x011E
struct ec_params_efs_verify {
uint8_t region; /* enum ec_flash_region */
} __ec_align1;
/*****************************************************************************/
/* Fingerprint MCU commands: range 0x0400-0x040x */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册