summaryrefslogtreecommitdiff
path: root/board/reef/board.c
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2017-11-06 11:26:25 -0800
committerchrome-bot <chrome-bot@chromium.org>2017-11-06 17:26:16 -0800
commitfca1b7b710898ff347465d839c14164d610f140d (patch)
tree0da058d8d7158d05c65df0d312f34148f0b0720c /board/reef/board.c
parentf48cf0e8b27fb484271540e4cc272aea581a3b48 (diff)
downloadchrome-ec-fca1b7b710898ff347465d839c14164d610f140d.tar.gz
flash_ec: Set NEED_SERVO according to chip name instead of board name
One can pass either a board name (e.g. hammer) or a chip name (stm32) to the flash_ec command. If given a board name, will map to a proper chip name and then call its chip-flashing method. The NEED_SERVO variable ("no" if servo not needed) was set according to the board name. It was broken if only given a chip name. It should be set according to the chip name. BUG=b:68943874 BRANCH=None TEST=Flashed the Staff firmware SERVO $ dut-control ec_boot_mode:on DUT $ ectool gpioset PP3300_DX_BASE 0 DUT $ ectool gpioset PP3300_DX_BASE 1 DUT $ flash_ec --chip stm32_dfu --image staff_ec.bin SERVO $ dut-control ec_boot_mode:off DUT $ ectool gpioset PP3300_DX_BASE 0 DUT $ ectool gpioset PP3300_DX_BASE 1 Change-Id: I1799f083115bfdf203a405733c5baefadbe3fe3e Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/755614 Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'board/reef/board.c')
0 files changed, 0 insertions, 0 deletions