summaryrefslogtreecommitdiff
path: root/board/plankton
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2016-08-22 17:11:27 +0200
committerchrome-bot <chrome-bot@chromium.org>2016-09-01 19:52:35 -0700
commit02b80c49f473b872360a782f6a95c607c6734717 (patch)
tree4c4e9b53f264b81d57206a0035a3ce8adbf323a2 /board/plankton
parentf4863ef03d76fc3923c49bccdfaf28b47ddc80f9 (diff)
downloadchrome-ec-02b80c49f473b872360a782f6a95c607c6734717.tar.gz
pd: manage total source current available
Add a policy to handle the case where the device can source the `CONFIG_USB_PD_MAX_SINGLE_SOURCE_CURRENT` over one of its type-C port if there is no sink connected on the other ones. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=none BUG=chrome-os-partner:56110 TEST=manual: on Kevin, plug and unplug various devices on the 2 ports, while measuring the type-C pull-up with Twinkie. Change-Id: Id5961f04d0a1b1073f5ab340068efd9079918209 Reviewed-on: https://chromium-review.googlesource.com/373818 Commit-Ready: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'board/plankton')
-rw-r--r--board/plankton/usb_pd_policy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/plankton/usb_pd_policy.c b/board/plankton/usb_pd_policy.c
index 8a916e65aa..1b5e0271df 100644
--- a/board/plankton/usb_pd_policy.c
+++ b/board/plankton/usb_pd_policy.c
@@ -55,7 +55,7 @@ void board_set_source_cap(enum board_src_cap cap)
pd_src_pdo_idx = cap;
}
-int pd_get_source_pdo(const uint32_t **src_pdo)
+int charge_manager_get_source_pdo(const uint32_t **src_pdo)
{
*src_pdo = pd_src_pdo;
return pd_src_pdo_cnts[pd_src_pdo_idx];