diff options
author | Aseda Aboagye <aaboagye@google.com> | 2018-11-05 15:20:45 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-03-26 04:42:44 -0700 |
commit | 862d00cf9994809711853c1f5261f7b9906ba149 (patch) | |
tree | 9aed051f4102ce002ef11c61b1730b18e8c75e2c /driver/ppc/sn5s330.h | |
parent | f913d50eb1298f8ad1772ddbe3b9a51b35e08f3c (diff) | |
download | chrome-ec-862d00cf9994809711853c1f5261f7b9906ba149.tar.gz |
sn5s330: Add VCONN overcurrent logging.
The TI SN5S330 has VCONN overcurrent protection and will automatically
latch off VCONN if a port overcurrents it. Keeping VCONN latched off is
allowed per the USB Type-C spec. This commit simply logs a message on
the EC console such that it will be easier to tell when it happens.
BUG=none
BRANCH=firmware-nocturne-10984.B
TEST=flash nocturne, plug in a Type-C adapter which overcurrents VCONN,
verify that a console message indicating the overcurrent event is shown.
Change-Id: I22da6e8d43ac7739dc213d5a1f049b98d7ee829d
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/1328321
Reviewed-by: Jett Rink <jettrink@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1330162
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Edward Hill <ecgh@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'driver/ppc/sn5s330.h')
-rw-r--r-- | driver/ppc/sn5s330.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/driver/ppc/sn5s330.h b/driver/ppc/sn5s330.h index 039fbe68e4..c5b16ea73b 100644 --- a/driver/ppc/sn5s330.h +++ b/driver/ppc/sn5s330.h @@ -136,6 +136,14 @@ enum sn5s330_pp_idx { #define SN5S330_ILIM_PP1_MASK (1 << 4) /* + * INT_MASK_RISE/FALL_EDGE2 + * + * The VCONN_ILIM bit indicates an overcurrent condition on VCONN. By default, + * VCONN will be latched off. + */ +#define SN5S330_VCONN_ILIM (1 << 1) + +/* * INT_MASK_RISE/FALL_EDGE_3 * * The VBUS_GOOD bit indicates VBUS has increased beyond a 4.0V threshold. |