diff options
| author | Gwendal Grignou <gwendal@chromium.org> | 2019-06-03 14:33:58 -0400 |
|---|---|---|
| committer | Lee Jones <lee.jones@linaro.org> | 2019-06-10 04:15:08 -0400 |
| commit | a0d50b31cee948de1be0ad14b78127a00530f43e (patch) | |
| tree | 107ca2f470feebc8ecbcdc49acdf09ea5ad6fa59 /include/linux/mfd | |
| parent | da038d6ee7a4e791eba6b1954a6c49f4f2856786 (diff) | |
mfd: cros_ec: Add API for rwsig
Add command to retrieve signature of image stored in the RW memory
slot(s).
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Acked-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Acked-by: Benson Leung <bleung@chromium.org>
Reviewed-by: Fabien Lahoudere <fabien.lahoudere@collabora.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/mfd')
| -rw-r--r-- | include/linux/mfd/cros_ec_commands.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/linux/mfd/cros_ec_commands.h b/include/linux/mfd/cros_ec_commands.h index 4a9ac3861bdd..3d3a37b11002 100644 --- a/include/linux/mfd/cros_ec_commands.h +++ b/include/linux/mfd/cros_ec_commands.h | |||
| @@ -5043,6 +5043,32 @@ struct ec_response_pd_chip_info_v1 { | |||
| 5043 | }; | 5043 | }; |
| 5044 | } __ec_align2; | 5044 | } __ec_align2; |
| 5045 | 5045 | ||
| 5046 | /* Run RW signature verification and get status */ | ||
| 5047 | #define EC_CMD_RWSIG_CHECK_STATUS 0x011C | ||
| 5048 | |||
| 5049 | struct ec_response_rwsig_check_status { | ||
| 5050 | uint32_t status; | ||
| 5051 | } __ec_align4; | ||
| 5052 | |||
| 5053 | /* For controlling RWSIG task */ | ||
| 5054 | #define EC_CMD_RWSIG_ACTION 0x011D | ||
| 5055 | |||
| 5056 | enum rwsig_action { | ||
| 5057 | RWSIG_ACTION_ABORT = 0, /* Abort RWSIG and prevent jumping */ | ||
| 5058 | RWSIG_ACTION_CONTINUE = 1, /* Jump to RW immediately */ | ||
| 5059 | }; | ||
| 5060 | |||
| 5061 | struct ec_params_rwsig_action { | ||
| 5062 | uint32_t action; | ||
| 5063 | } __ec_align4; | ||
| 5064 | |||
| 5065 | /* Run verification on a slot */ | ||
| 5066 | #define EC_CMD_EFS_VERIFY 0x011E | ||
| 5067 | |||
| 5068 | struct ec_params_efs_verify { | ||
| 5069 | uint8_t region; /* enum ec_flash_region */ | ||
| 5070 | } __ec_align1; | ||
| 5071 | |||
| 5046 | /*****************************************************************************/ | 5072 | /*****************************************************************************/ |
| 5047 | /* Fingerprint MCU commands: range 0x0400-0x040x */ | 5073 | /* Fingerprint MCU commands: range 0x0400-0x040x */ |
| 5048 | 5074 | ||
