summaryrefslogtreecommitdiff
path: root/util/burn_my_ec.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/burn_my_ec.c')
-rw-r--r--util/burn_my_ec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/burn_my_ec.c b/util/burn_my_ec.c
index cb8ead87ac..522f461e62 100644
--- a/util/burn_my_ec.c
+++ b/util/burn_my_ec.c
@@ -66,8 +66,8 @@ int flash_partition(enum ec_current_image part, const uint8_t *payload,
current = get_version();
if (current == part) {
- rst_req.target = part == EC_IMAGE_RO ?
- EC_IMAGE_RW_A : EC_IMAGE_RO;
+ rst_req.cmd = part == EC_IMAGE_RO ?
+ EC_REBOOT_JUMP_RW_A : EC_REBOOT_JUMP_RO;
ec_command(EC_CMD_REBOOT_EC, &rst_req, sizeof(rst_req),
NULL, 0);
/* wait EC reboot */