From bd2f31b0f0ea55f5cc1dc118fd5a008c8430cc2b Mon Sep 17 00:00:00 2001 From: Scott Chao Date: Thu, 5 Jan 2023 14:12:11 +0800 Subject: flash_ec: change ec_reset to gsc_ec_reset After CL:4108949, the ec_reset have changed to gsc_ec_reset. This CL will avoid flash error due to No control named "ec_reset". BUG=none BRANCH=none TEST=use c2d2 and flash ec Change-Id: I28c8c957b3a5d24b659bb5234e9538bff0898871 Signed-off-by: Scott Chao Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4135920 Reviewed-by: Mary Ruthven Code-Coverage: Zoss Commit-Queue: Mary Ruthven (cherry picked from commit 8163dba9aebb47b2bdca455463060b947fc5c382) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4140104 Tested-by: Garry Wang Commit-Queue: Garry Wang --- util/flash_ec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/util/flash_ec b/util/flash_ec index 8419c2e7a0..0a6044c012 100755 --- a/util/flash_ec +++ b/util/flash_ec @@ -1292,7 +1292,7 @@ function flash_it83xx() { c2d2_wait_for_h1_power_on_or_reset # Don't let the EC come out of reset after H1 reset - dut_control ec_reset:on + dut_control gsc_ec_reset:on # Enable i2c bus on C2D2 at 400kbps servo_save_add "i2c_ec_bus_speed" @@ -1318,7 +1318,7 @@ function flash_it83xx() { # We need to send the special waveform very soon after the EC powers on if [[ "${SERVO_TYPE}" =~ "c2d2" ]]; then # The EC was held in reset above - dut_control ec_reset:off + dut_control gsc_ec_reset:off elif servo_has_cold_reset; then servo_ec_hard_reset_or_die fi @@ -1480,11 +1480,11 @@ function flash_npcx_uut() { c2d2_wait_for_h1_power_on_or_reset # Don't let the EC come out of reset after H1 reset - dut_control ec_reset:on + dut_control gsc_ec_reset:on # Force the EC to boot in UART update mode coming out of reset ec_enable_boot0 "uut" - dut_control ec_reset:off + dut_control gsc_ec_reset:off # Ensure normal UART operation ec_disable_boot0 "uut" -- cgit v1.2.1