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>
This commit is contained in:
Rong Chang
2015-04-24 10:14:38 +08:00
committed by ChromeOS Commit Bot
parent 1cdb90878f
commit 91b9c336ee

View File

@@ -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