summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"