summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorRaul E Rangel <rrangel@chromium.org>2018-05-04 10:24:29 -0600
committerchrome-bot <chrome-bot@chromium.org>2018-05-24 00:23:13 -0700
commit336be875915c5aa0ae285401c0f60d0c93a563ac (patch)
treec26f76d5ce200a37c0cd24e3f29c984deb153140 /common
parent895b8a903205ac9a3856e6c1ed20b20f1a798361 (diff)
downloadchrome-ec-336be875915c5aa0ae285401c0f60d0c93a563ac.tar.gz
grunt: Add support for flashing via Suzy-Q and servo
When grunt is connected via a Suzy-Q cable, it can only be flashed using npcx_uut. Also when grunt is connected via a servo it shouldn't try to use npcx_uut, but instead use npcx_spi. This change allows a board to show up in multiple BOARDS_XXX lists. If there are multiples, it will either look at the --chips flag, or it will check the VALID_CHIP_COMBO array to see if chip is valid for the servo type. BUG=b:77927814 BRANCH=none TEST=Tested each leg of the logic by changing parameters and variables. Tested using Suzy-Q: ./util/flash_ec --board=grunt Also tested using ServoV2: ./util/flash_ec --board=grunt Change-Id: I7068b5bab0cf20bd2d9ffdd3842a58df1f2f8810 Signed-off-by: Raul E Rangel <rrangel@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1044499 Commit-Ready: Martin Roth <martinroth@chromium.org> Reviewed-by: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions