summaryrefslogtreecommitdiff
path: root/board/hoho/usb_pd_config.h
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2014-12-07 04:25:39 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-12-11 21:13:48 +0000
commit34fe8658abe4e6b63b3d1b5e727ba8c792110431 (patch)
tree0966fb21ba58a2616a239e35e3485b7599672583 /board/hoho/usb_pd_config.h
parenta94a5561dc2a959e3cc586f0c5ca63f9de0a810a (diff)
downloadchrome-ec-34fe8658abe4e6b63b3d1b5e727ba8c792110431.tar.gz
pd: refactor pd policy layer request voltage functions
Remove common code across all PD policy layers to select the requested voltage and build a Request Data Object (RDO). BUG=none BRANCH=samus TEST=Load onto samus and connect zinger. Make sure we request the right voltage (first 5V, then after initial contract is made, 20V). Make sure input current limit is set appropriately by checking limit on EC console using charger command. Change-Id: Ic6bda5e23b2d7b7d710ffdf085e7fbc1b0c3add9 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/233673 Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Commit-Queue: Shawn Nematbakhsh <shawnn@chromium.org> Tested-by: Shawn Nematbakhsh <shawnn@chromium.org>
Diffstat (limited to 'board/hoho/usb_pd_config.h')
-rw-r--r--board/hoho/usb_pd_config.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/hoho/usb_pd_config.h b/board/hoho/usb_pd_config.h
index 3af9e0a189..ba6e545a3f 100644
--- a/board/hoho/usb_pd_config.h
+++ b/board/hoho/usb_pd_config.h
@@ -139,4 +139,11 @@ static inline int pd_snk_is_vbus_provided(int port)
/* we are never a source : don't care about power supply */
#define PD_POWER_SUPPLY_TRANSITION_DELAY 0 /* us */
+
+/* Define typical operating power and max power */
+#define PD_OPERATING_POWER_MW 1000
+#define PD_MAX_POWER_MW 1500
+#define PD_MAX_CURRENT_MA 300
+#define PD_MAX_VOLTAGE_MV 5000
+
#endif /* __USB_PD_CONFIG_H */