summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2015-04-24 15:18:04 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-04-27 22:11:27 +0000
commit6ab5d9b8d011d54abf25ac981f45ba0f1766d7b4 (patch)
tree6e9ddd16d8818bb183bdcc5aa8f1d4b76ae136d6
parentdf299ce8200f4e54d4134d5c821824848b7b3ba8 (diff)
downloadchrome-ec-6ab5d9b8d011d54abf25ac981f45ba0f1766d7b4.tar.gz
samus: add device to dual-role charging white list
Add Apple VGA charge-through adapter PID to dual-role charging white list so that we automatically charge through it. BUG=chrome-os-partner:38785 BRANCH=samus TEST=make -j buildall Change-Id: I5de757a9e97824a2b488a45497c73ab53cc1899c Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/267300 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r--common/usb_pd_policy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/usb_pd_policy.c b/common/usb_pd_policy.c
index b5d6f91b91..9d12b48434 100644
--- a/common/usb_pd_policy.c
+++ b/common/usb_pd_policy.c
@@ -184,7 +184,7 @@ int pd_charge_from_device(uint16_t vid, uint16_t pid)
* externally powered bit, but we still need to charge from it when
* we are a sink.
*/
- return (vid == USB_VID_APPLE && pid == 0x1012);
+ return (vid == USB_VID_APPLE && (pid == 0x1012 || pid == 0x1013));
}
#endif /* CONFIG_USB_PD_DUAL_ROLE */