summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutil/flash_ec10
1 files changed, 4 insertions, 6 deletions
diff --git a/util/flash_ec b/util/flash_ec
index e9e4700361..d0d3ace2b5 100755
--- a/util/flash_ec
+++ b/util/flash_ec
@@ -1151,13 +1151,11 @@ function flash_it83xx() {
if [[ "${SERVO_TYPE}" == "servo_v2" ]]; then
ITEFLASH_ARGS+=( "--send-waveform=1" "--i2c-interface=ftdi" )
else
- ITEFLASH_ARGS+=( "--send-waveform=0" )
+ ITEFLASH_ARGS=( "sudo" "--" "${ITEFLASH_ARGS[@]}" \
+ "--send-waveform=0" "--i2c-interface=linux" \
+ "--i2c-dev-path=$(dut_i2c_dev)" )
if [[ "${SERVO_TYPE}" =~ "ccd_cr50" ]]; then
- ITEFLASH_ARGS+=( "--i2c-interface=ccd" )
- else
- ITEFLASH_ARGS=( "sudo" "--" "${ITEFLASH_ARGS[@]}" \
- "--i2c-interface=linux" \
- "--i2c-dev-path=$(dut_i2c_dev)" )
+ ITEFLASH_ARGS+=( "--block-write-size=256" )
fi
fi