summaryrefslogtreecommitdiff
path: root/driver/tcpm/stub.c
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2016-08-22 15:34:42 +0200
committerchrome-bot <chrome-bot@chromium.org>2016-08-25 07:32:31 -0700
commite880402f74c7c76b269222caad6c3c80d3d6549e (patch)
tree1fe28d4b441b6bdae50b1f12cc9eb01a1db4855e /driver/tcpm/stub.c
parent613be38789b8d54aaf43c452ea348782fe53e9c0 (diff)
downloadchrome-ec-e880402f74c7c76b269222caad6c3c80d3d6549e.tar.gz
pd: select dynamically Rp value
Add API to switch the Rp pull-up value on CC dynamically at runtime. This is a preparatory work for boards having a more complex maximum source current policy (eg 2 ports sharing a common pool of power). For fusb302, update the voltage thresholds for open/Rd/Ra as they depend on the Rp (was missing from the previous change). Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=none BUG=chrome-os-partner:56110 TEST=make buildall Change-Id: Id3c24a31a16217075a398ec21ef58ee07187a882 Reviewed-on: https://chromium-review.googlesource.com/373501 Commit-Ready: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'driver/tcpm/stub.c')
-rw-r--r--driver/tcpm/stub.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/driver/tcpm/stub.c b/driver/tcpm/stub.c
index 91ac6638d7..ae3f00f420 100644
--- a/driver/tcpm/stub.c
+++ b/driver/tcpm/stub.c
@@ -66,6 +66,11 @@ int tcpm_get_cc(int port, int *cc1, int *cc2)
return tcpc_get_cc(port, cc1, cc2);
}
+int tcpm_select_rp_value(int port, int rp)
+{
+ return -EC_ERROR_UNIMPLEMENTED;
+}
+
int tcpm_set_cc(int port, int pull)
{
return tcpc_set_cc(port, pull);