mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user