summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2014-04-30 17:19:22 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-05-05 18:35:37 +0000
commitb0d1d116556244732752c9c3653560047dd5b28a (patch)
tree094e17138838f6724a98131e554fafe4bf65f3cd /include
parentd1921632fc8926fa5a566ba14bfe718881fd8bea (diff)
downloadchrome-ec-b0d1d116556244732752c9c3653560047dd5b28a.tar.gz
zinger: implement fault protection
Detect over-current and over-voltage and trigger a fault. The over-current threshold is 10% over 3A (3.3A). Only currently implement the slow protection, the fast interrupt-based one will be done later. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=none BUG=chrome-os-partner:28331 TEST=with Zinger connected to an electronic load, adjust the current to 3.35A and see the output voltage cut. Change-Id: I0e848192392fd73f0839d4bcb806528b2a6b9122 Reviewed-on: https://chromium-review.googlesource.com/197947 Commit-Queue: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/usb_pd.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h
index 84d98dff9b..659fc5cd54 100644
--- a/include/usb_pd.h
+++ b/include/usb_pd.h
@@ -153,8 +153,9 @@ void pd_request_source_voltage(int mv);
/*
* Verify board specific health status : current, voltages...
*
+ * @return EC_SUCCESS if the board is good, <0 else.
*/
-void pd_board_checks(void);
+int pd_board_checks(void);
/* Power Data Objects for the source and the sink */
extern const uint32_t pd_src_pdo[];