diff options
author | Caveh Jalali <caveh@chromium.org> | 2021-06-22 16:46:41 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-06-24 22:25:43 +0000 |
commit | 68e231572cbd18f792befbf3f09b6f3655f55052 (patch) | |
tree | 63858e2fb205d3e52fae704fbf7a7684a0375cac /include | |
parent | 2deb6c9dcb24d1f034be0f270b137f3146c8ee6e (diff) | |
download | chrome-ec-68e231572cbd18f792befbf3f09b6f3655f55052.tar.gz |
TCPCI: add ALERT_NONE
This adds the TCPC_REG_ALERT_NONE constant to explicitly checking if the
alert register has no alerts pending.
BRANCH=none
BUG=b:191531291
TEST=buildall passes
Change-Id: If2d2166fbc422f071a394125fbdbe14cf20f54bc
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2986599
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/driver/tcpm/tcpci.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/driver/tcpm/tcpci.h b/include/driver/tcpm/tcpci.h index 69897e3893..2bd9614123 100644 --- a/include/driver/tcpm/tcpci.h +++ b/include/driver/tcpm/tcpci.h @@ -22,6 +22,7 @@ #define TCPC_REG_PD_INT_REV 0xa #define TCPC_REG_ALERT 0x10 +#define TCPC_REG_ALERT_NONE 0x0000 #define TCPC_REG_ALERT_MASK_ALL 0xffff #define TCPC_REG_ALERT_VENDOR_DEF BIT(15) #define TCPC_REG_ALERT_ALERT_EXT BIT(14) |