提交 492c1dc9 编写于 作者: B Badhri Jagan Sridharan 提交者: Greg Kroah-Hartman

usb: typec: tcpci: Add register definitions to tcpci

Add register definitions to trap extended alerts.
Reviewed-by: NHeikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: NBadhri Jagan Sridharan <badhri@google.com>
Link: https://lore.kernel.org/r/20200901025927.3596190-2-badhri@google.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 8036a7e7
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#define TCPC_PD_INT_REV 0xa #define TCPC_PD_INT_REV 0xa
#define TCPC_ALERT 0x10 #define TCPC_ALERT 0x10
#define TCPC_ALERT_EXTENDED_STATUS BIT(13)
#define TCPC_ALERT_VBUS_DISCNCT BIT(11) #define TCPC_ALERT_VBUS_DISCNCT BIT(11)
#define TCPC_ALERT_RX_BUF_OVF BIT(10) #define TCPC_ALERT_RX_BUF_OVF BIT(10)
#define TCPC_ALERT_FAULT BIT(9) #define TCPC_ALERT_FAULT BIT(9)
...@@ -32,6 +33,10 @@ ...@@ -32,6 +33,10 @@
#define TCPC_ALERT_MASK 0x12 #define TCPC_ALERT_MASK 0x12
#define TCPC_POWER_STATUS_MASK 0x14 #define TCPC_POWER_STATUS_MASK 0x14
#define TCPC_FAULT_STATUS_MASK 0x15 #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_CONFIG_STD_OUTPUT 0x18
#define TCPC_TCPC_CTRL 0x19 #define TCPC_TCPC_CTRL 0x19
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册