summaryrefslogtreecommitdiff
path: root/include
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 /include
parent590cee8315e94e729493d2ecd8a604bcfbfa7d0e (diff)
downloadu-boot-a12ef7e26a69213869badc02c0f3267816200024.tar.gz
u-boot-a12ef7e26a69213869badc02c0f3267816200024.tar.bz2
u-boot-a12ef7e26a69213869badc02c0f3267816200024.zip
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 'include')
-rw-r--r--include/cros_ec.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/cros_ec.h b/include/cros_ec.h
index 5576bcf32e..4771e6b7d1 100644
--- a/include/cros_ec.h
+++ b/include/cros_ec.h
@@ -96,10 +96,12 @@ int cros_ec_read_current_image(struct udevice *dev,
* Read the hash of the CROS-EC device firmware.
*
* @param dev CROS-EC device
+ * @param hash_offset Offset in flash to read from
* @param hash Destination for hash information
* @return 0 if ok, <0 on error
*/
-int cros_ec_read_hash(struct udevice *dev, struct ec_response_vboot_hash *hash);
+int cros_ec_read_hash(struct udevice *dev, uint hash_offset,
+ struct ec_response_vboot_hash *hash);
/**
* Send a reboot command to the CROS-EC device.