diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2014-04-30 17:19:22 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-05-05 18:35:37 +0000 |
commit | b0d1d116556244732752c9c3653560047dd5b28a (patch) | |
tree | 094e17138838f6724a98131e554fafe4bf65f3cd /board/firefly | |
parent | d1921632fc8926fa5a566ba14bfe718881fd8bea (diff) | |
download | chrome-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 'board/firefly')
-rw-r--r-- | board/firefly/usb_pd_policy.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/board/firefly/usb_pd_policy.c b/board/firefly/usb_pd_policy.c index 4a6d9da103..d00ac47916 100644 --- a/board/firefly/usb_pd_policy.c +++ b/board/firefly/usb_pd_policy.c @@ -85,7 +85,7 @@ void pd_power_supply_reset(void) { } -void pd_board_checks(void) +int pd_board_checks(void) { static int blinking; int vbus; @@ -122,4 +122,6 @@ void pd_board_checks(void) gpio_set_level(GPIO_LED_PP5000, led5); gpio_set_level(GPIO_LED_PP12000, led12); gpio_set_level(GPIO_LED_PP20000, led20); + + return EC_SUCCESS; } |