summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2015-11-17 11:48:26 -0800
committerchrome-bot <chrome-bot@chromium.org>2015-11-17 22:06:49 -0800
commitf0489dc275f8782365b89cdd9db956e7b78018be (patch)
treed253dcc38e56b6ca5b2c5f572f81cfd8bf66ec3b /common
parent4b10eb6c09efd133f6ba2fcce6463cf8e925495c (diff)
downloadchrome-ec-f0489dc275f8782365b89cdd9db956e7b78018be.tar.gz
pd: initialize tcpc when tcpm boots
Always initialize TCPC when TCPM boots. This guarantees that our TCPM driver is synced up with the TCPC reg values. BUG=chrome-os-partner:47608 BRANCH=none TEST=test on glados. reboot EC and PD MCUs independently with and without external power. Change-Id: I2d989e8a85ba8a72fe1a8edaef8da9c51651d240 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/312951 Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/usb_pd_protocol.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c
index e97380dc3c..511c5aba4c 100644
--- a/common/usb_pd_protocol.c
+++ b/common/usb_pd_protocol.c
@@ -1397,11 +1397,9 @@ void pd_task(void)
pd[port].flags = pd_is_vbus_present(port) ? PD_FLAGS_VBUS_NEVER_LOW : 0;
#endif
-#ifdef CONFIG_USB_PD_TCPC
/* Initialize TCPM driver and wait for TCPC to be ready */
tcpm_init(port);
CPRINTF("[%T TCPC p%d ready]\n", port);
-#endif
/* Disable TCPC RX until connection is established */
tcpm_set_rx_enable(port, 0);