summaryrefslogtreecommitdiff
path: root/board/coral/usb_pd_policy.c
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2017-11-06 10:07:15 -0800
committerchrome-bot <chrome-bot@chromium.org>2017-11-07 12:17:43 -0800
commitf4ee6caa665009ca3306f61706074b82e1e2c347 (patch)
treec61dd1cd667f35324443a64c1d540d67e6ee5ed9 /board/coral/usb_pd_policy.c
parentfca1b7b710898ff347465d839c14164d610f140d (diff)
downloadchrome-ec-f4ee6caa665009ca3306f61706074b82e1e2c347.tar.gz
bd9995x: Use fixed PD-port-to-VBUS/VCC mapping
The bd9995x driver was written to allow any PD port # to be VBUS or VCC, but the mapping is broken in a few places. Since all boards use VBUS = port 0, remove the conversion entirely. BUG=chromium:781849 BRANCH=kevin TEST=Verify PD and BC1.2 charging still works on kevin. Change-Id: I3687866835d1684342d9f746d91b3a6079ab5cc4 Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/755000 Commit-Ready: Shawn N <shawnn@chromium.org> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/coral/usb_pd_policy.c')
-rw-r--r--board/coral/usb_pd_policy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/coral/usb_pd_policy.c b/board/coral/usb_pd_policy.c
index b6c3f07328..20286af0a0 100644
--- a/board/coral/usb_pd_policy.c
+++ b/board/coral/usb_pd_policy.c
@@ -92,7 +92,7 @@ void typec_set_source_current_limit(int port, int rp)
int pd_set_power_supply_ready(int port)
{
/* Ensure we're not charging from this port */
- bd9995x_select_input_port(bd9995x_pd_port_to_chg_port(port), 0);
+ bd9995x_select_input_port(port, 0);
/* Ensure we advertise the proper available current quota */
charge_manager_source_port(port, 1);