From 91b9c336eee36c1ad6fe045b683852e318dbc7cf Mon Sep 17 00:00:00 2001 From: Rong Chang Date: Fri, 24 Apr 2015 10:14:38 +0800 Subject: [PATCH] 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 Tested-by: Rong Chang Commit-Queue: Rong Chang --- util/flash_ec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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