summaryrefslogtreecommitdiff
path: root/include/usb_pd.h
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2014-12-03 03:06:54 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-12-08 21:51:38 +0000
commit8bb26a29b04c39a81c4094de9d7fba5f85123f54 (patch)
treef8486a9a75adf169d8f8cf11f687c46a77590b7c /include/usb_pd.h
parent3c780a915c6294fe5b3e9bde227585c562a65c85 (diff)
downloadchrome-ec-8bb26a29b04c39a81c4094de9d7fba5f85123f54.tar.gz
pd: before sysjump send soft reset and then disable PD comms
Before sysjump we need to send a soft reset to any attached devices and then disable PD communication so that we don't re-negotiate again before the sysjump. This will guarantee expected message ID is cleared for after the sysjump. This also moves executing soft reset from before sending the soft reset command to after the port partner accepts a soft reset. BUG=none BRANCH=samus TEST=test on samus. without this change, when sysjumping the PD MCU has time to re-negotiate (at least partially) before the sysjump, which causes various problems. with this change, when sysjumping, the PD MCU sends soft reset, and then does not send anything else. Change-Id: Id7a60c62c8908ee4ab33dfbe995ef136b0aa83de Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/233751
Diffstat (limited to 'include/usb_pd.h')
-rw-r--r--include/usb_pd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h
index 7418988236..7c7532d08f 100644
--- a/include/usb_pd.h
+++ b/include/usb_pd.h
@@ -1168,6 +1168,8 @@ void pd_ping_enable(int port, int enable);
/* Issue PD soft reset */
void pd_soft_reset(void);
+/* Prepare PD communication for sysjump */
+void pd_prepare_sysjump(void);
/**
* Signal power request to indicate a charger update that affects the port.