summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2022-08-22 20:32:27 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-08-23 19:16:55 +0000
commit52034307c30d8eea4c0cc46327ad140b5a276086 (patch)
tree4e75ee1f3b707645838c542edbae822c86a42c53 /util
parent3d1d1db2066576ca0868967c31b9f651b0e415ae (diff)
downloadchrome-ec-52034307c30d8eea4c0cc46327ad140b5a276086.tar.gz
flash_ec: On C2D2 disable EC flashing mode when finished
The mux switching C2D2 between I2C and EC console remains in the EC programming mode, resulting in cutting access to EC and GSC consoles after ITE EC programming is finished. Disabling the programming mode after programming is completed restores access to the consoles. BRANCH=none BUG=b:243076325 TEST=successfully programmed EC on Nereid and Nivviks devices over C2D2, EC console remained available after programming was completed. Change-Id: Icfccbba3f129783a14d47e5913ee46195b219dee Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3849363 Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'util')
-rwxr-xr-xutil/flash_ec5
1 files changed, 4 insertions, 1 deletions
diff --git a/util/flash_ec b/util/flash_ec
index e7673df071..15ec7d03f6 100755
--- a/util/flash_ec
+++ b/util/flash_ec
@@ -1292,7 +1292,10 @@ function flash_it83xx() {
dut_control_or_die i2c_ec_bus_speed:400
# We need to swing the DUT-side muxes to I2C instead of UART.
- # This is done by convention with EC_FLASH_SELECT pin from H1
+ # This is done by convention with EC_FLASH_SELECT pin of the
+ # GSC. Also make sure that the setting is restored after
+ # completion.
+ servo_save_add "ec_flash_select" "off"
dut_control_or_die ec_flash_select:on
fi