summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2014-10-23 10:58:42 +0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-10-23 07:16:25 +0000
commitb78b2b636983669c31afebc2b81537e6cf34f6ba (patch)
tree7341199a5f833a7afaecfc10bac9a9e64642a434
parenteab146be79186bdfb95d6997f95dbd7565fc03f8 (diff)
downloadchrome-ec-b78b2b636983669c31afebc2b81537e6cf34f6ba.tar.gz
plankton: Fix output voltage selection
We updated the source PDO indices and we also need to update the output voltage selection function. BRANCH=None BUG=chrome-os-partner:33133 TEST=On Plankton, output 5V and measure with INA. Change-Id: I771c04cf929a8e473cf09ae3eb222518f042600a Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/225154 Reviewed-by: Pin-chih Lin <johnylin@chromium.org>
-rw-r--r--board/plankton/usb_pd_policy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/plankton/usb_pd_policy.c b/board/plankton/usb_pd_policy.c
index fdcaf38ff4..f213fce9ca 100644
--- a/board/plankton/usb_pd_policy.c
+++ b/board/plankton/usb_pd_policy.c
@@ -133,8 +133,8 @@ int pd_set_power_supply_ready(int port)
{
/* Output the correct voltage */
gpio_set_level(GPIO_VBUS_CHARGER_EN, 1);
- gpio_set_level(GPIO_USBC_VSEL_0, requested_voltage_idx >= 2);
- gpio_set_level(GPIO_USBC_VSEL_1, requested_voltage_idx >= 3);
+ gpio_set_level(GPIO_USBC_VSEL_0, requested_voltage_idx >= 3);
+ gpio_set_level(GPIO_USBC_VSEL_1, requested_voltage_idx >= 4);
return EC_SUCCESS;
}