summaryrefslogtreecommitdiff
path: root/util/flash_ec
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2018-06-19 11:33:55 -0600
committerchrome-bot <chrome-bot@chromium.org>2018-06-19 19:11:16 -0700
commit4fd457c2c8aa8b053bd0991cd4de52a5f490cd8f (patch)
tree8f93218758804e9275c8cb19271da71880575e89 /util/flash_ec
parent4a9b039e47ddda25bc02232d7e8314a72cdc2c7b (diff)
downloadchrome-ec-4fd457c2c8aa8b053bd0991cd4de52a5f490cd8f.tar.gz
bip: ensure AP is off during EC flash
Hard reset the system right before flashing the EC to ensure that AP is off while we are flashing the EC. BRANCH=none BUG=b:110410722 TEST=flash bip and verify that AP console is unresponsive. Change-Id: I297f230c260ae5c3c1a8de8f0ea7c55a87606691 Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1106655
Diffstat (limited to 'util/flash_ec')
-rwxr-xr-xutil/flash_ec3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/flash_ec b/util/flash_ec
index 2f40389396..59632cb769 100755
--- a/util/flash_ec
+++ b/util/flash_ec
@@ -981,6 +981,9 @@ function flash_it83xx() {
dut_control dut_i2c_mux:ec_prog
fi
+ # Ensure that the AP is off while we are flashing the EC
+ servo_ec_hard_reset
+
info "Close connection to ftdi_i2c interface"
dut_control --ftdii2c close