summaryrefslogtreecommitdiff
path: root/include/usb_pd.h
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2020-11-12 11:27:16 -0700
committerCommit Bot <commit-bot@chromium.org>2020-11-20 02:44:58 +0000
commit9247f46d701541811ca9bc4fb0488ba132c8a337 (patch)
tree31469590e39568001cd84c2fed8eb4d2a6e84699 /include/usb_pd.h
parent998ddb3f4adeb84ff6db85bdb6dab8c2baee9ff9 (diff)
downloadchrome-ec-9247f46d701541811ca9bc4fb0488ba132c8a337.tar.gz
TCPMv2: Replace charging allow list
Replace the charging allow list with a check to verify whether the partner can provide at least 27W to the DUT. This should cover existing members of the allow list, and deprecate the need to continue adding to this list. BRANCH=None BUG=b:173070679 TEST=on drawcia, verify DUT can charge from power bank, Apple 3-in-1, and servo_v4 Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Id0b516782809b6912602e9b7ab0546938e0b85ed Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2535217 Tested-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-by: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'include/usb_pd.h')
-rw-r--r--include/usb_pd.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h
index 055008efd3..640cbba7ed 100644
--- a/include/usb_pd.h
+++ b/include/usb_pd.h
@@ -249,6 +249,12 @@ enum pd_rx_errors {
#define PD_V_SINK_DISCONNECT_MAX 3670
/* TODO(b/149530538): Add equation for vSinkDisconnectPD */
+/* Maximum voltage in mV offered by PD 3.0 Version 2.0 Spec */
+#define PD_REV3_MAX_VOLTAGE 20000
+
+/* Power in mW at which we will automatically charge from a DRP partner */
+#define PD_DRP_CHARGE_POWER_MIN 27000
+
/* function table for entered mode */
struct amode_fx {
int (*status)(int port, uint32_t *payload);