mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-14 16:46:23 +00:00
kevin: Don't disable both charge ports when we source VBUS
Ensure we're not charging from the port we're sourcing, but don't touch the other port. BUG=chrome-os-partner:52315 BRANCH=None TEST=Attach unpowered peripheral + zinger to kevin and go to S0. Verify that we continue pulling current from zinger at 3A. Change-Id: Ic22b10e9ae08459cf062d7a51c9d627832d9ed63 Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/338833 Commit-Ready: Shawn N <shawnn@chromium.org> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
290ae152c1
commit
f2ea8d729d
@@ -50,8 +50,9 @@ void pd_transition_voltage(int idx)
|
||||
|
||||
int pd_set_power_supply_ready(int port)
|
||||
{
|
||||
/* Disable charging */
|
||||
bd99955_select_input_port(BD99955_CHARGE_PORT_NONE);
|
||||
/* Ensure we're not charging from this port */
|
||||
if (charge_manager_get_active_charge_port() == port)
|
||||
bd99955_select_input_port(BD99955_CHARGE_PORT_NONE);
|
||||
|
||||
/* Provide VBUS */
|
||||
gpio_set_level(port ? GPIO_C1_VOUT_EN_L :
|
||||
|
||||
Reference in New Issue
Block a user