diff options
author | Hung-Te Lin <hungte@chromium.org> | 2019-12-13 17:28:37 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-01-20 07:09:10 +0000 |
commit | e6d3c638095ea8c4cc050ad42c1f439e79b6b641 (patch) | |
tree | d38b50d589789cf820ee168a1e3949854dd04f55 /futility/updater_utils.h | |
parent | 431878c401ff0e72548d1043ac5e010a92871afc (diff) | |
download | vboot-e6d3c638095ea8c4cc050ad42c1f439e79b6b641.tar.gz |
futility: updater: Add '--servo' for updating via Servo-V2 and ServoMicro
Flashing via Servo V2 and Servo Micro was known to be a complicated.
With the new virtual control 'cpu_fw_spi' we have a better way to
prepare servo in an unified way.
The new '--servo' will detect servo type and pick up the right params
(for servo v2, servo micro, servo v4 with ccd, or servo v4 + micro)
for programming.
BRANCH=None
BUG=None
TEST=make runtest; sudo futility update --servo -i image.bin
Cq-Depend: chromium:1966176
Change-Id: Ia14288b1bd5f24acfc4fb85ba64c2c445152a3a7
Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1966872
Reviewed-by: Joel Kitching <kitching@chromium.org>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'futility/updater_utils.h')
-rw-r--r-- | futility/updater_utils.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/futility/updater_utils.h b/futility/updater_utils.h index f5248f86..5e6e99cd 100644 --- a/futility/updater_utils.h +++ b/futility/updater_utils.h @@ -171,6 +171,13 @@ enum wp_state { enum wp_state host_get_wp(const char *programmer); /* + * Helper function to detect type of Servo board attached to host, + * and store the right programmer / prepare settings to arguments. + * Returns 0 if success, non-zero if error. + */ +int host_detect_servo(const char **programmer_ptr, int *need_prepare_ptr); + +/* * Returns 1 if a given file (cbfs_entry_name) exists inside a particular CBFS * section of an image file, otherwise 0. */ |