diff options
author | Aseda Aboagye <aaboagye@google.com> | 2017-05-11 13:57:05 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-06-13 19:36:58 -0700 |
commit | 8ba7c1762c68ad81df688c407ecf1836ce177e75 (patch) | |
tree | 5c294591336110e8294b90bb551b8b8e79c213e2 /util | |
parent | ea6f53ae0cb0a903af539dcdce8886aeabbb4725 (diff) | |
download | chrome-ec-8ba7c1762c68ad81df688c407ecf1836ce177e75.tar.gz |
flash_ec: Support servo_v4 w/ CCD for flash_stm32.
Using servo v4 with the captive CCD cable to flash an STM32 requires bit
banging mode to be enabled. This commit adds that support.
BUG=b:35648297
BRANCH=gru
TEST=Add support for rowan and flash rowan with no issues.
Change-Id: I6317d4acdd569888e20a1e298de7c8b620e94bb1
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Reviewed-on: https://chromium-review.googlesource.com/503476
Commit-Ready: Aseda Aboagye <aaboagye@chromium.org>
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Nick Sanders <nsanders@chromium.org>
Diffstat (limited to 'util')
-rwxr-xr-x | util/flash_ec | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/util/flash_ec b/util/flash_ec index ee989fbaca..db126668d1 100755 --- a/util/flash_ec +++ b/util/flash_ec @@ -606,7 +606,14 @@ function flash_stm32() { dut_control ${MCU}_uart_en:on fi dut_control ${MCU}_uart_parity:even - dut_control ${MCU}_uart_baudrate:115200 + + if [ "${SERVO_TYPE}" == "servo_v4_with_ccd_cr50" ] ; then + dut_control ${MCU}_uart_baudrate:9600 + dut_control ${MCU}_uart_bitbang_en:on + else + dut_control ${MCU}_uart_baudrate:115200 + fi + if $(servo_has_warm_reset); then dut_control warm_reset:on fi |