summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRong Chang <rongchang@chromium.org>2015-04-24 10:14:38 +0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-05-15 10:32:40 +0000
commit91b9c336eee36c1ad6fe045b683852e318dbc7cf (patch)
tree6be92080a0b028da65b16f218e32e472fe4d3f7e
parent1cdb90878fef48ec860b23f3fd21ba05f0c0d38b (diff)
downloadchrome-ec-91b9c336eee36c1ad6fe045b683852e318dbc7cf.tar.gz
oak: Add oak EC and PD flash_ec support
flash_ec script supports stm32 ec and usbpd. This change adds new board name and MCU map. BUG=none TEST=manual flash_ec --board oak --image ec.bin flash_ec --board oak_pd --image pd.bin Change-Id: I51a4a22b5188dda35d7b8c34a0115997f374f413 Reviewed-on: https://chromium-review.googlesource.com/267042 Reviewed-by: Alec Berg <alecaberg@chromium.org> Tested-by: Rong Chang <rongchang@chromium.org> Commit-Queue: Rong Chang <rongchang@chromium.org>
-rwxr-xr-xutil/flash_ec4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/flash_ec b/util/flash_ec
index 9ee1da44d5..f4956223e6 100755
--- a/util/flash_ec
+++ b/util/flash_ec
@@ -71,6 +71,8 @@ BOARDS_STM32=(
mighty
minimuffin
nyan
+ oak
+ oak_pd
pinky
pit
plankton
@@ -273,7 +275,7 @@ function ec_uart() {
# Servo variables management
case "${BOARD}" in
ryu_sh ) MCU="sh" ;;
- samus_pd ) MCU="usbpd" ;;
+ samus_pd|oak_pd ) MCU="usbpd" ;;
dingdong|hoho|twinkie ) DUT_CONTROL_CMD="true" ; MCU="ec" ;;
*) MCU="ec" ;;
esac