summaryrefslogtreecommitdiff
path: root/driver/tcpm/ps8xxx.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/tcpm/ps8xxx.c')
-rw-r--r--driver/tcpm/ps8xxx.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/driver/tcpm/ps8xxx.c b/driver/tcpm/ps8xxx.c
index 7e65b7373b..fce7795f13 100644
--- a/driver/tcpm/ps8xxx.c
+++ b/driver/tcpm/ps8xxx.c
@@ -7,7 +7,9 @@
* Type-C port manager for Parade PS8XXX with integrated superspeed muxes.
*
* Supported TCPCs:
+ * - PS8705
* - PS8751
+ * - PS8755
* - PS8805
* - PS8815
*/
@@ -20,7 +22,8 @@
#include "usb_pd.h"
#if !defined(CONFIG_USB_PD_TCPM_PS8751) && \
- !defined(CONIFG_USB_PD_TCPM_PS8705) && \
+ !defined(CONFIG_USB_PD_TCPM_PS8755) && \
+ !defined(CONFIG_USB_PD_TCPM_PS8705) && \
!defined(CONFIG_USB_PD_TCPM_PS8805) && \
!defined(CONFIG_USB_PD_TCPM_PS8815)
#error "Unsupported PS8xxx TCPC."
@@ -172,7 +175,7 @@ static int ps8xxx_get_chip_info(int port, int live,
#if defined(CONFIG_USB_PD_TCPM_PS8751) || defined(CONFIG_USB_PD_TCPM_PS8805) \
- || defined(CONFIG_USB_PD_TCPM_PS8705)
+ || defined(CONFIG_USB_PD_TCPM_PS8705) || defined(CONFIG_USB_PD_TCPM_PS8755)
/*
* DCI is enabled by default and burns about 40 mW when the port is in
* USB2 mode or when a C-to-A dongle is attached, so force it off.
@@ -195,7 +198,7 @@ static int ps8xxx_addr_dci_disable(int port, int i2c_addr, int i2c_reg)
}
return EC_SUCCESS;
}
-#endif /* CONFIG_USB_PD_TCPM_PS8751 || CONFIG_USB_PD_TCPM_PS8[78]05 */
+#endif /* CONFIG_USB_PD_TCPM_PS875[15] || CONFIG_USB_PD_TCPM_PS8[78]05 */
#ifdef CONFIG_USB_PD_TCPM_PS8815
static int ps8xxx_dci_disable(int port)
@@ -226,7 +229,7 @@ static int ps8xxx_dci_disable(int port)
/* Disable Auto DCI */
p1_addr = PS8751_P3_TO_P1_FLAGS(p3_addr);
rv = ps8xxx_addr_dci_disable(port, p1_addr,
- PS8805_P1_REG_MUX_USB_DCI_CFG);
+ PS8XXX_P1_REG_MUX_USB_DCI_CFG);
/*
* PS8805 will automatically re-assert bit:0 on the
@@ -236,7 +239,7 @@ static int ps8xxx_dci_disable(int port)
}
#endif /* CONFIG_USB_PD_TCPM_PS8805 */
-#ifdef CONFIG_USB_PD_TCPM_PS8705
+#if defined(CONFIG_USB_PD_TCPM_PS8705) || defined(CONFIG_USB_PD_TCPM_PS8755)
static int ps8xxx_dci_disable(int port)
{
int p1_addr;
@@ -257,7 +260,7 @@ static int ps8xxx_dci_disable(int port)
/* Disable Auto DCI */
p1_addr = PS8751_P3_TO_P1_FLAGS(p3_addr);
rv = ps8xxx_addr_dci_disable(port, p1_addr,
- PS8705_P1_REG_MUX_USB_DCI_CFG);
+ PS8XXX_P1_REG_MUX_USB_DCI_CFG);
/* Turn off access to debug pages. */
rv |= tcpc_addr_write(port, p3_addr, PS8XXX_REG_I2C_DEBUGGING_ENABLE,
@@ -265,7 +268,7 @@ static int ps8xxx_dci_disable(int port)
return rv;
}
-#endif /* CONFIG_USB_PD_TCPM_PS8705 */
+#endif /* CONFIG_USB_PD_TCPM_PS87[05]5 */
#ifdef CONFIG_USB_PD_TCPM_PS8751
static int ps8xxx_dci_disable(int port)