diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2016-08-22 15:34:42 +0200 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-08-25 07:32:31 -0700 |
commit | e880402f74c7c76b269222caad6c3c80d3d6549e (patch) | |
tree | 1fe28d4b441b6bdae50b1f12cc9eb01a1db4855e /driver/tcpm/anx7688.c | |
parent | 613be38789b8d54aaf43c452ea348782fe53e9c0 (diff) | |
download | chrome-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/anx7688.c')
-rw-r--r-- | driver/tcpm/anx7688.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/driver/tcpm/anx7688.c b/driver/tcpm/anx7688.c index ae1dd32124..7dda345302 100644 --- a/driver/tcpm/anx7688.c +++ b/driver/tcpm/anx7688.c @@ -182,6 +182,7 @@ const struct tcpm_drv anx7688_tcpm_drv = { #ifdef CONFIG_USB_PD_VBUS_DETECT_TCPC .get_vbus_level = &anx7688_tcpm_get_vbus_level, #endif + .select_rp_value = &tcpci_tcpm_select_rp_value, .set_cc = &tcpci_tcpm_set_cc, .set_polarity = &tcpci_tcpm_set_polarity, .set_vconn = &tcpci_tcpm_set_vconn, |