summaryrefslogtreecommitdiff
path: root/driver/ppc/sn5s330.h
diff options
context:
space:
mode:
authorYilun Lin <yllin@google.com>2018-08-16 16:41:53 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-08-23 13:21:07 -0700
commiteab2576658393d15af7fc55e97e827951cafa05e (patch)
treea498e430be9420115c71a4140b884238b38b6737 /driver/ppc/sn5s330.h
parent599232ba9103d3b8a0df0f24792801b6734ded64 (diff)
downloadchrome-ec-eab2576658393d15af7fc55e97e827951cafa05e.tar.gz
tcpc/mt6370: Fix state debouncing when enable auto-toggling w/o battery.
mt6370 updates CC pin information to different registers according to whether it is DRP toggling or not. When DRP toggling: CC information will update to CC_STATUS 0x1D When DRP not toggling: CC information will update to ROLE_CTRL 0x1D However, there is a situation that when we are enabling CONFIG_USB_PD_DUAL_ROLE_AUTO_TOGGLE: When we detach the battery, and plug type-c port to boot EC, the type-c port is already connected, before auto-toggling is on. mt6370 here updates CC information to ROLE_CTRL 0x1D, rather than CC_STATUS. So here, we should determine where to retrieve the CC information dynamically. BRANCH=None BUG=b:112113303 TEST=w/ battery: check state transition behaves correctly when sourcing and sinking. TEST=w/o battery: check state transition behaves correctly when sinking. Change-Id: Icf9e39f68aedb43a8fceba5d31795126a433d547 Signed-off-by: Yilun Lin <yllin@google.com> Reviewed-on: https://chromium-review.googlesource.com/1177465 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Tested-by: Yilun Lin <yllin@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'driver/ppc/sn5s330.h')
0 files changed, 0 insertions, 0 deletions