summaryrefslogtreecommitdiff
path: root/core/cortex-m0/build.mk
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2021-10-26 16:36:51 -0600
committerCommit Bot <commit-bot@chromium.org>2021-11-03 22:10:08 +0000
commit37493c0d4726d658902f41dbd521f30323b025ba (patch)
treeab76f9fab9b26ecb9c973ff7e66434b0e69b35b9 /core/cortex-m0/build.mk
parent7709b473263a7d8a740080ccbc848c54c76569d9 (diff)
downloadchrome-ec-37493c0d4726d658902f41dbd521f30323b025ba.tar.gz
Guybrush: Handle dead battery boot in more scenarios
When booting with no battery and multiple chargers (ex. suzy-q), we may end up in scenarios where we have more than one TCPC in dead battery mode. Attempt to get these TCPCs reset whenever we can, and always err on the side of selecting the dead battery port as charge port. This also corrects a typo in the case of no charge port selected. BRANCH=None BUG=b:183660105 TEST=on guybrush: - boot with cutoff battery at 0% and two chargers, verify one is reset and the other is selected. Re-plug charger that isn't selected and verify it still isn't selected, Charge to 4% and verify new charger can be selected and old port is reset. - boot with cutoff battery at 9% and one charger, verify dead battery port is immediately reset Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I4d4ebf314efbbcde99c820a78f5bd4639d08e0a5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3248346 Reviewed-by: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'core/cortex-m0/build.mk')
0 files changed, 0 insertions, 0 deletions