summaryrefslogtreecommitdiff
path: root/board/dingdong
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2014-11-19 10:59:31 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-11-21 02:44:56 +0000
commit911e21ccc12617c36caa1bb0a5c35ee7902f38c4 (patch)
tree9b82a0d58859b518d2e1390512c449c0bc2425e5 /board/dingdong
parent905fc1cf6f469581154fe7ed3bc29cf766be1241 (diff)
downloadchrome-ec-911e21ccc12617c36caa1bb0a5c35ee7902f38c4.tar.gz
pd: wait tSnkTransition after ACCEPT to change voltage
Ensure that the PD source changes the output voltage after tSnkTransition delay after having sent the ACCEPT message (rather than before). Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=samus BUG=chrome-os-partner:33684 TEST=connect Zinger to a PD power sink and monitor VBUS and CC while doing a 20V to 5V transition. Change-Id: If86f59eec67630491f4e8dc13a52015ac2de918a Reviewed-on: https://chromium-review.googlesource.com/230805 Reviewed-by: Alec Berg <alecaberg@chromium.org> Commit-Queue: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board/dingdong')
-rw-r--r--board/dingdong/usb_pd_policy.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/board/dingdong/usb_pd_policy.c b/board/dingdong/usb_pd_policy.c
index 63223d8927..2743eb12fd 100644
--- a/board/dingdong/usb_pd_policy.c
+++ b/board/dingdong/usb_pd_policy.c
@@ -96,12 +96,16 @@ void pd_set_max_voltage(unsigned mv)
select_mv = mv;
}
-int requested_voltage_idx;
-int pd_request_voltage(uint32_t rdo)
+int pd_check_requested_voltage(uint32_t rdo)
{
return EC_SUCCESS;
}
+void pd_transition_voltage(int idx)
+{
+ /* No operation: sink only */
+}
+
int pd_set_power_supply_ready(int port)
{
return EC_SUCCESS;