diff options
author | Denis Brockus <dbrockus@google.com> | 2020-04-14 09:26:17 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-04-16 05:42:30 +0000 |
commit | 66272422f71c94bb7c5b31830a43e2ce1684a37c (patch) | |
tree | d0447638ff6c5466fdc71a536add0b78cdc7a0ed /include/usb_pd_tcpm.h | |
parent | 97cc9112a6e986cf71848a8c4f973d42f599465f (diff) | |
download | chrome-ec-66272422f71c94bb7c5b31830a43e2ce1684a37c.tar.gz |
nct38xx: handle TCPCI faults
Add chip specific fault handling. This includes the
all registers reset to default fault as well as the
Vbus OVP fault.
BUG=b:152841243
BRANCH=none
TEST=switch normal to dev-mode with AC attached
Signed-off-by: Denis Brockus <dbrockus@google.com>
Change-Id: Id5233823d873833c21da885a5a13fffe794899f7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2149385
Tested-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Auto-Submit: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'include/usb_pd_tcpm.h')
-rw-r--r-- | include/usb_pd_tcpm.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/usb_pd_tcpm.h b/include/usb_pd_tcpm.h index 35f9cccb47..1ad9e6b03d 100644 --- a/include/usb_pd_tcpm.h +++ b/include/usb_pd_tcpm.h @@ -405,6 +405,16 @@ struct tcpm_drv { * @param enable FRS enable (true) disable (false) */ void (*set_frs_enable)(int port, int enable); + + /** + * Handle TCPCI Faults + * + * @param port Type-C port number + * @param fault TCPCI fault status value + * + * @return EC_SUCCESS or error + */ + int (*handle_fault)(int port, int fault); }; /* |