mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-28 02:35:28 +00:00
The flash_ec uses the given board name to select a proper flashing method. It keeps a mapping from board name to chip name. This approach is not scalable if we want this script to work on all supported board variants, like the pinky family which has many boards: jerry, minnie, speedy, etc. This change adds a new argument of chip name, such that we can only keep the mapping of major boards. Other boards not listed can use the chip argument to select a proper flashing method. BRANCH=none BUG=chromium:505003 TEST=Ran the script on Beaglebone/Servo v3 connected with Jerry: $ flash_ec --chip stm32 --image ec.bin Change-Id: I553ee68f82a7985a37548dfb6e89b364eaffd0f1 Signed-off-by: Tom Wai-Hong Tam <waihong@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/287445 Reviewed-by: Dan Shi <dshi@chromium.org> Reviewed-by: Myles Watson <mylesgw@chromium.org>