diff options
author | Diana Z <dzigterman@chromium.org> | 2020-10-30 14:18:56 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-17 16:44:16 +0000 |
commit | 51484d77533e60cdfe21902eaf759c3be14df40a (patch) | |
tree | d28d5db09af798fd2972a4c4f902d770a951fe1a /board/cheza | |
parent | 15b590a0999752abe28584a0c502fe9435ec7e41 (diff) | |
download | chrome-ec-51484d77533e60cdfe21902eaf759c3be14df40a.tar.gz |
TCPM: Add OCP module
Currently, the overcurrent protection is tracked in the PPC code.
However, as different chips are able to report overcurrent move this
code into a generic module.
Logic for not sourcing Vbus or Vconn on latched ports moves into
the TC layer, and an overridable board overcurrent function is provided
for boards which have no special actions to take.
BRANCH=None
BUG=b:171501161
TEST=make -j buildall; TCPMv2 tested with following drawcia patch
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I75919e345a5b0bce4a0b67432a13515e7716cf6a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2532676
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/cheza')
-rw-r--r-- | board/cheza/board.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/board/cheza/board.c b/board/cheza/board.c index d8901bc845..7437b8da72 100644 --- a/board/cheza/board.c +++ b/board/cheza/board.c @@ -34,6 +34,7 @@ #include "usb_charge.h" #include "usb_mux.h" #include "usb_pd.h" +#include "usbc_ocp.h" #include "usbc_ppc.h" #include "util.h" |