From 35a01462f14fd2eeb282af28fd82065aafee3747 Mon Sep 17 00:00:00 2001 From: Vic Yang Date: Wed, 22 Oct 2014 11:20:46 -0700 Subject: [PATCH] Allow 5V/3A on Plankton Plankton is capable of supplying 5V at 3A. Advertise 5V/3A as well. BRANCH=None BUG=chrome-os-partner:33133 TEST=Switch plankton to 5V/12V/20V source and measure power with INA. Change-Id: Iea0545b30127b415a9dc51fceff0b7eff162c1d0 Signed-off-by: Vic Yang Reviewed-on: https://chromium-review.googlesource.com/224986 Reviewed-by: Vincent Palatin Reviewed-by: Alec Berg --- board/plankton/usb_pd_policy.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/board/plankton/usb_pd_policy.c b/board/plankton/usb_pd_policy.c index 80742b6a5b..fdcaf38ff4 100644 --- a/board/plankton/usb_pd_policy.c +++ b/board/plankton/usb_pd_policy.c @@ -24,13 +24,14 @@ /* Source PDOs */ const uint32_t pd_src_pdo[] = { PDO_FIXED(5000, 500, PDO_FIXED_EXTERNAL), + PDO_FIXED(5000, 3000, PDO_FIXED_EXTERNAL), PDO_FIXED(12000, 3000, PDO_FIXED_EXTERNAL), PDO_FIXED(20000, 3000, PDO_FIXED_EXTERNAL), }; static const int pd_src_pdo_cnts[3] = { - [SRC_CAP_5V] = 1, - [SRC_CAP_12V] = 2, - [SRC_CAP_20V] = 3, + [SRC_CAP_5V] = 2, + [SRC_CAP_12V] = 3, + [SRC_CAP_20V] = 4, }; static int pd_src_pdo_idx;