summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2014-07-21 17:03:20 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-07-28 07:18:42 +0000
commitd89d34516c88a69977f6c32bfaf57a6655560356 (patch)
tree5bb085b5b76991e4d184ecdf0fd84dcfc7943645
parent5778a9943a7d48ffba387934593cdf44d4f950b9 (diff)
downloadchrome-ec-d89d34516c88a69977f6c32bfaf57a6655560356.tar.gz
[ryu_sh] Add option to flash the sensor hub
servo is already aware of the sensor hub. Using samus_pd as an example, set the proper argument to flash an image to the sensor hub. BUG=chrome-os-partner:30801 BRANCH=None TEST=None Change-Id: I0c8465d1e34d515224675957c3e8482392585a56 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/209232 Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rwxr-xr-xutil/flash_ec12
1 files changed, 11 insertions, 1 deletions
diff --git a/util/flash_ec b/util/flash_ec
index fe9105d3d6..8c153b5199 100755
--- a/util/flash_ec
+++ b/util/flash_ec
@@ -50,6 +50,11 @@ servo_usbpd_hard_reset() {
dut_control usbpd_reset:on sleep:0.5 usbpd_reset:off
}
+servo_sh_hard_reset() {
+ dut_control sh_reset:on
+ dut_control sh_reset:off
+}
+
ec_reset() {
eval ${SERVO_TYPE}_${MCU}_hard_reset
}
@@ -67,6 +72,10 @@ servo_usbpd_boot0() {
dut_control usbpd_boot_mode:on
}
+servo_sh_boot0() {
+ dut_control sh_boot_mode:on
+}
+
ec_enable_boot0() {
eval ${SERVO_TYPE}_${MCU}_boot0
}
@@ -127,6 +136,7 @@ function ec_uart() {
# Servo variables management
case "${BOARD}" in
+ ryu_sh ) MCU="sh" ;;
samus_pd ) MCU="usbpd" ;;
twinkie ) DUT_CONTROL_CMD="true" ; MCU="ec" ;;
*) MCU="ec" ;;
@@ -285,7 +295,7 @@ save="$(servo_save)"
case "${BOARD}" in
big | discovery | nyan | pit | snow | spring | veyron ) flash_stm32 ;;
- fruitpie | zinger | firefly | samus_pd | ryu ) flash_stm32 ;;
+ fruitpie | zinger | firefly | samus_pd | ryu | ryu_sh) flash_stm32 ;;
twinkie) flash_stm32_dfu ;;
falco | peppy | rambi | samus | squawks ) flash_lm4 ;;
link ) flash_link ;;