diff options
author | Aseda Aboagye <aaboagye@google.com> | 2018-12-03 16:14:07 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-12-04 00:11:39 -0800 |
commit | 86fc3cec8ad36cee316efbf5226fd5d5f009364a (patch) | |
tree | 04b61dc8e4a7b35d66f39445bd0d38a529988b64 /board/nocturne/base_detect.c | |
parent | 5f4f729f2fde645c377b6e3011dab82b1585a469 (diff) | |
download | chrome-ec-86fc3cec8ad36cee316efbf5226fd5d5f009364a.tar.gz |
nocturne: Log base power fault cause.
A base power fault can be triggered by either the eFuse or the USB
protection chip. This commit logs the source of the base power fault.
BUG=none
BRANCH=firmware-nocturne-10984.B
TEST=make -j buildall
Change-Id: I1082d56fef2c0b1b2963f2af98216e455e7ab958
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/1358747
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
(cherry picked from commit 7836cdd6e6ce3ab11d49add01a91a59aa03057de)
Reviewed-on: https://chromium-review.googlesource.com/1360073
Commit-Ready: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/nocturne/base_detect.c')
-rw-r--r-- | board/nocturne/base_detect.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/board/nocturne/base_detect.c b/board/nocturne/base_detect.c index 406f06ef6a..d9fc6904cf 100644 --- a/board/nocturne/base_detect.c +++ b/board/nocturne/base_detect.c @@ -283,7 +283,8 @@ void base_pwr_fault_interrupt(enum gpio_signal s) if (pwr_fault_detected | usb_fault_detected) { /* Turn off base power. */ - CPRINTS("Base Pwr Flt!"); + CPRINTS("Base Pwr Flt! %s%s", pwr_fault_detected ? "p" : "-", + usb_fault_detected ? "u" : "-"); base_power_enable(0); /* |