mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-16 18:11:22 +00:00
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>
25 KiB
Executable File
25 KiB
Executable File