summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2015-09-22 15:02:35 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-09-24 12:46:27 -0700
commit6190e15597ba0f842040abf7dbb615e0ceeefa2e (patch)
tree015b50714a9f8d5a2dd91cd30276e3f6511f3ec3 /util
parentdac76cc8d053d592202e5caf6ccff03e78b1c43d (diff)
downloadchrome-ec-6190e15597ba0f842040abf7dbb615e0ceeefa2e.tar.gz
flash_ec: restore boot_mode for all MCUs
Make sure to restore boot_mode gpio for all MCUs. Previously, only usbpd_boot_mode was restored, but not ec_boot_mode which is used on lucid. BUG=none BRANCH=none TEST=flashed lucid (ec_boot_mode), glados_pd (usbpd_boot_mode), and zinger (boot_mode) and verified that the boot_mode gpio was restored to off at the end of flashing. Change-Id: Ib6fcddcac6d00465e31a0e710bae3b8318bac659 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/301338 Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Todd Broch <tbroch@chromium.org>
Diffstat (limited to 'util')
-rwxr-xr-xutil/flash_ec12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/flash_ec b/util/flash_ec
index d45cd6913b..9104f6da71 100755
--- a/util/flash_ec
+++ b/util/flash_ec
@@ -282,12 +282,12 @@ case "${BOARD}" in
esac
servo_VARS="${MCU}_uart_en ${MCU}_uart_parity \
-${MCU}_uart_baudrate jtag_buf_on_flex_en jtag_buf_en spi1_vref dev_mode"
-if [[ "${MCU}" == "usbpd" ]] ; then
- servo_VARS+=" usbpd_boot_mode"
- if $(in_array "${BOARDS_STM32_PROG_EN[@]}" "${BOARD}"); then
- servo_VARS+=" prog_en"
- fi
+${MCU}_uart_baudrate jtag_buf_on_flex_en jtag_buf_en dev_mode"
+if $(in_array "${BOARDS_STM32[@]}" "${BOARD}"); then
+ servo_VARS+=" ${MCU}_boot_mode"
+fi
+if $(in_array "${BOARDS_STM32_PROG_EN[@]}" "${BOARD}"); then
+ servo_VARS+=" prog_en"
fi
toad_VARS="${MCU}_uart_parity \
${MCU}_uart_baudrate boot_mode"