]> git.baikalelectronics.ru Git - kernel.git/commitdiff
usb: typec: tcpci: Add register definitions to tcpci
authorBadhri Jagan Sridharan <badhri@google.com>
Tue, 1 Sep 2020 02:59:14 +0000 (19:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Sep 2020 11:03:44 +0000 (13:03 +0200)
Add register definitions to trap extended alerts.

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Link: https://lore.kernel.org/r/20200901025927.3596190-2-badhri@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/tcpci.h

index 11c36d086c86086f3058bc1de3d35938fbd71225..fd26ca35814c1ab986427336c6bda7388e1f09d5 100644 (file)
@@ -16,6 +16,7 @@
 #define TCPC_PD_INT_REV                        0xa
 
 #define TCPC_ALERT                     0x10
+#define TCPC_ALERT_EXTENDED_STATUS     BIT(13)
 #define TCPC_ALERT_VBUS_DISCNCT                BIT(11)
 #define TCPC_ALERT_RX_BUF_OVF          BIT(10)
 #define TCPC_ALERT_FAULT               BIT(9)
 #define TCPC_ALERT_MASK                        0x12
 #define TCPC_POWER_STATUS_MASK         0x14
 #define TCPC_FAULT_STATUS_MASK         0x15
+
+#define TCPC_EXTENDED_STATUS_MASK              0x16
+#define TCPC_EXTENDED_STATUS_MASK_VSAFE0V      BIT(0)
+
 #define TCPC_CONFIG_STD_OUTPUT         0x18
 
 #define TCPC_TCPC_CTRL                 0x19