summaryrefslogtreecommitdiff
path: root/cmd/cros_ec.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-10-01 12:22:38 -0600
committerSimon Glass <sjg@chromium.org>2018-10-09 04:40:27 -0600
commita12ef7e26a69213869badc02c0f3267816200024 (patch)
tree4c2c51c62639e3980fa47313ee81888503a3aa02 /cmd/cros_ec.c
parent590cee8315e94e729493d2ecd8a604bcfbfa7d0e (diff)
cros_ec: Update cros_ec_read_hash() to specify the image
Allow selection of which EC image to hash. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd/cros_ec.c')
-rw-r--r--cmd/cros_ec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/cros_ec.c b/cmd/cros_ec.c
index 3ac4f3b235..9e2f1b06f3 100644
--- a/cmd/cros_ec.c
+++ b/cmd/cros_ec.c
@@ -149,7 +149,7 @@ static int do_cros_ec(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
struct ec_response_vboot_hash hash;
int i;
- if (cros_ec_read_hash(dev, &hash)) {
+ if (cros_ec_read_hash(dev, EC_VBOOT_HASH_OFFSET_ACTIVE, &hash)) {
debug("%s: Could not read KBC hash\n", __func__);
return 1;
}