mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-13 11:25:14 +00:00
The ec_boot_mode is used for flashing EC on STM32 and NPCX chips. The ec_boot_mode pin is an open-drain GPIO. Doing save/restore is destructive. For example, if DUT is unpowered (ec_boot_mode is "on"), doing save/restore will force it outputting to "on". We should not put it to the save/restore list. Instead, set it back to "off" on exit. BRANCH=none BUG=b:80305869 TEST=Ran flash_ec when DUT is unpowered -> failed as expected. Reran again when powered. Checked EC UART showed-up afterward. Change-Id: Iecf4b663fe9ae75a673a29a66505a4121d29888c Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/1073646 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>