summaryrefslogtreecommitdiff
path: root/board/waddledee
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2020-09-22 16:57:03 -0600
committerJustin TerAvest <teravest@chromium.org>2020-10-01 23:04:47 +0000
commit8b05bdfc38ccc2b1eb694ad4d41096e08a5116c4 (patch)
tree243ed41da6da51bed4b650049a185536f0dd5243 /board/waddledee
parent9b4f53e42e7bfcb2d045eca422b0097cc309a8d2 (diff)
downloadchrome-ec-8b05bdfc38ccc2b1eb694ad4d41096e08a5116c4.tar.gz
TCPMv2: Add VBUS_REMOVED level
For boards which use Vbus ADCs, add a VBUS_REMOVED check level. The level for VBUS_PRESENT should be used in any locations looking for "Vbus is present" on transition, but in order to correctly detect disconnection with a load on Vbus, VBUS_REMOVED (vSinkDisconnect) is required. TODO statements have been added for places where work will be needed to support vSinkDisconnectPD in the future. For boards detecting Vbus through an external chip, the levels will likely be indistinguishable due to the chips setting a lower threshold for disconnect than for connection. Unit test code has also been added to encourage new Vbus levels to be added to the mock, and remind developers to update all locations using the vbus_level enum. BRANCH=None BUG=b:168831161 TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I04014ce54ec162dd9c62f545126d921c6d880741 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2436580 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'board/waddledee')
0 files changed, 0 insertions, 0 deletions