summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorRong Chang <rongchang@chromium.org>2015-05-27 10:42:22 +0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-06-10 14:19:29 +0000
commita585141db0d8012be637919d081e7fabbcd644ff (patch)
tree28a243b613b0deea75a7fbc41a4e4a3305f770ff /util
parent339fe7245ddc61b7b619465420fe69e2634e50ba (diff)
downloadchrome-ec-a585141db0d8012be637919d081e7fabbcd644ff.tar.gz
stm32: switch to ec_boot_mode servo control
hdctools adds an alias ec_boot_mode and remaps spi1_vref with onoff control. This change switches ARM systems with STM32 EC from spi1_vref:pp3300 to ec_boot_mode:on. CQ-DEPEND=CL:275251 BRANCH=none BUG=chrome-os-partner:40479 TEST=manual cd ~/trunk/platform/ec util/flash_ec --board oak --image oak_ec.bin util/flash_ec --board oak_pd --image oak_pd.bin Change-Id: I0f3a74eaa7fc937d1372cd51124c6b3d23351581 Signed-off-by: Rong Chang <rongchang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/274770 Reviewed-by: Alec Berg <alecaberg@chromium.org> Reviewed-by: Todd Broch <tbroch@chromium.org> Reviewed-by: Wei-Ning Huang <wnhuang@chromium.org>
Diffstat (limited to 'util')
-rwxr-xr-xutil/flash_ec4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/flash_ec b/util/flash_ec
index c0a2d46983..486e4801d1 100755
--- a/util/flash_ec
+++ b/util/flash_ec
@@ -185,7 +185,7 @@ toad_ec_boot0() {
}
servo_ec_boot0() {
- dut_control spi1_vref:pp3300
+ dut_control ec_boot_mode:on
}
servo_usbpd_boot0() {
@@ -283,7 +283,7 @@ 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"
+${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