summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2020-07-22 10:36:58 -0600
committerCommit Bot <commit-bot@chromium.org>2020-07-23 20:55:00 +0000
commit2a5ab6634b4372123491a29e7388484e22ea044a (patch)
tree693075b13fd4e329ff82b4d8ad30cd0c8ae0313b /util
parent91aeafbd17ed2b2902f17476f66993deeb0b7aab (diff)
downloadchrome-ec-2a5ab6634b4372123491a29e7388484e22ea044a.tar.gz
util/flash_ec: drop support for toad cable
All devices with a servo v1 connector are AUE... assume we can drop this old code from ToT. BUG=none BRANCH=none TEST=run with dry run params for scarlet and attached servo v4... no output diff Change-Id: I09df37e2e287337f7962055c3244eab4afacead8 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2313597 Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'util')
-rwxr-xr-xutil/flash_ec30
1 files changed, 0 insertions, 30 deletions
diff --git a/util/flash_ec b/util/flash_ec
index 4a364559a1..d6bde4ab7d 100755
--- a/util/flash_ec
+++ b/util/flash_ec
@@ -417,16 +417,6 @@ servo_has_dut_i2c_mux() {
dut_control -i dut_i2c_mux >/dev/null 2>&1
}
-# reset the EC
-toad_ec_hard_reset() {
- if dut_control cold_reset 2>/dev/null ; then
- dut_control cold_reset:on
- dut_control cold_reset:off
- else
- info "you probably need to hard-reset your EC manually"
- fi
-}
-
servo_ec_hard_reset_or_die() {
dut_control_or_die cold_reset:on
dut_control_or_die cold_reset:off
@@ -473,11 +463,6 @@ ec_reset() {
fi
}
-# force the EC to boot in serial monitor mode
-toad_ec_boot0() {
- dut_control boot_mode:$1
-}
-
ccd_ec_boot0() {
info "Using CCD $2."
dut_control ccd_ec_boot_mode_$2:$1
@@ -542,13 +527,6 @@ ec_switch_boot0() {
stype=servo
else
stype=${SERVO_TYPE}
- if [[ "${SERVO_TYPE}" =~ "toad" ]] ; then
- if [[ "${on_value}" == "on" ]] ; then
- on_value="yes"
- else
- on_value="no"
- fi
- fi
fi
eval ${stype}_${MCU}_boot0 "${on_value}" $2
}
@@ -729,7 +707,6 @@ c2d2_VARS=( "cold_reset" )
# Some servo boards use the same controls.
servo_v3_VARS=( "${servo_v2_VARS[@]}" )
servo_v4_with_servo_micro_VARS=( "${servo_micro_VARS[@]}" )
-toad_VARS=( "boot_mode" )
declare -a save
@@ -1533,13 +1510,6 @@ function flash_mec1322() {
flash_flashrom
}
-if dut_control_get boot_mode 2>/dev/null ; then
- if [[ "${MCU}" != "ec" ]] ; then
- die "Toad cable can't support non-ec UARTs"
- fi
- SERVO_TYPE=toad
- info "Using a dedicated debug cable"
-fi
info "Using ${SERVO_TYPE}."
# Only if it is a flash program request, call ec_image.