summaryrefslogtreecommitdiff
path: root/board/reef/usb_pd_policy.c
diff options
context:
space:
mode:
authorVijay Hiremath <vijay.p.hiremath@intel.com>2016-10-26 17:40:57 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-10-27 19:28:53 -0700
commit799c272e282a4727da949940828d815f11c526db (patch)
treece54acaa1222a08ed6e761636122087e8eef5e53 /board/reef/usb_pd_policy.c
parentb6937caeeb3f4642cfdc0bca52a890b30b81e9a4 (diff)
downloadchrome-ec-799c272e282a4727da949940828d815f11c526db.tar.gz
BD9995X: Disable input to port when sourcing
POR has both VCC & VBUS enabled. If the port is sourcing VBUS it will also act as sync and AC_OK pin gets enabled. Hence disable the input to the port when sourcing. BUG=chrome-os-partner:59020 BRANCH=none TEST=Manually verified on Reef. Connected HoHo and AC_OK is not enabled. Change-Id: Ic51b81f45759d7dddb2c9744d1c24dbafd1e1293 Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/404168 Commit-Ready: Vijay P Hiremath <vijay.p.hiremath@intel.com> Tested-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'board/reef/usb_pd_policy.c')
-rw-r--r--board/reef/usb_pd_policy.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/board/reef/usb_pd_policy.c b/board/reef/usb_pd_policy.c
index 5a2bae6f96..6e515abf81 100644
--- a/board/reef/usb_pd_policy.c
+++ b/board/reef/usb_pd_policy.c
@@ -54,8 +54,7 @@ void pd_transition_voltage(int idx)
int pd_set_power_supply_ready(int port)
{
/* Ensure we're not charging from this port */
- if (charge_manager_get_active_charge_port() == port)
- bd9995x_select_input_port(BD9995X_CHARGE_PORT_NONE);
+ bd9995x_select_input_port(bd9995x_pd_port_to_chg_port(port), 0);
/* Provide VBUS */
gpio_set_level(port ? GPIO_USB_C1_5V_EN :