summaryrefslogtreecommitdiff
path: root/board/servo_micro/board.h
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2019-10-30 11:34:19 -0700
committerCommit Bot <commit-bot@chromium.org>2019-11-06 22:11:56 +0000
commit73fb9377aa6028c2ad95eb939fa0615448750767 (patch)
tree018bb59f3620a7b516f7ba2ffeea7e530c7b5e60 /board/servo_micro/board.h
parent091a4b8b702a7cc686457efaebdc431e790b85d4 (diff)
downloadchrome-ec-73fb9377aa6028c2ad95eb939fa0615448750767.tar.gz
servo_v4: The polarity is based on the flags in SRC DTS mode
When the port in SRC DTS mode, it should not perform the polarity detection. The polarity is predetermined, as a board-specific setting. In the servo case, the polarity is based on the flags. This CL changes the protocol layer to check the port in SRC DTS mode and call the board-specific function board_get_src_dts_polarity() for the polarity. BRANCH=servo BUG=b:140876537 TEST=Configed servo as srcdts and unflipped direction: > cc srcdts cc2 Verified the power negotiation good and detected the correct polarity: > pd 1 state Port C1 CC2, Ena - Role: SRC-UFP State: SRC_READY, Flags: 0x415e Without this patch, it detected the wrong polarity and the power negotiation failed: > pd 1 state Port C1 CC1, Ena - Role: SRC-DFP State: SRC_DISCOVERY, Flags: 0x10608 Change-Id: I32c5dfffeaeb20a21db1417f3a1c98566b7f5e38 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1891255 Reviewed-by: Jett Rink <jettrink@chromium.org> Commit-Queue: Sean Abraham <seanabraham@chromium.org> (cherry picked from commit 3c1eff2e293adeca40c0c919e63db4c62b89de41) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1902098
Diffstat (limited to 'board/servo_micro/board.h')
0 files changed, 0 insertions, 0 deletions