summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin Lu <devin.lu@quantatw.com>2020-06-17 16:57:16 +0800
committerCommit Bot <commit-bot@chromium.org>2020-06-18 02:53:06 +0000
commitc687adf9e953e771bc0ccac1115066fd5fafdfb7 (patch)
treefe923f5800b0aae1e8174970fa29ad49ca1c1acd
parent49269321d709e4128b4c31da663fb1254b0cf82e (diff)
downloadchrome-ec-c687adf9e953e771bc0ccac1115066fd5fafdfb7.tar.gz
drawcia: change TCPC to ps8705 on USBC1 port
Drawcia support ps8705 on sub-board, this patch chagnes TCPC to ps8705 to USBC1 port. BUG=b:159013131 BRANCH=none TEST=make -j buildall Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: Ie360d490078afafdd98fa85a9e6a7d07291ae933 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2249645 Reviewed-by: Diana Z <dzigterman@chromium.org>
-rw-r--r--board/drawcia/board.c12
-rw-r--r--board/drawcia/board.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/board/drawcia/board.c b/board/drawcia/board.c
index 5730749735..e3fabb08b4 100644
--- a/board/drawcia/board.c
+++ b/board/drawcia/board.c
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* Waddledee board-specific configuration */
+/* Drawcia board-specific configuration */
#include "button.h"
#include "charge_manager.h"
@@ -16,8 +16,8 @@
#include "driver/sync.h"
#include "driver/retimer/tusb544.h"
#include "driver/temp_sensor/thermistor.h"
-#include "driver/tcpm/anx7447.h"
#include "driver/tcpm/it83xx_pd.h"
+#include "driver/tcpm/ps8xxx.h"
#include "driver/usb_mux/it5205.h"
#include "gpio.h"
#include "hooks.h"
@@ -164,9 +164,9 @@ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = {
.bus_type = EC_BUS_TYPE_I2C,
.i2c_info = {
.port = I2C_PORT_SUB_USB_C1,
- .addr_flags = AN7447_TCPC0_I2C_ADDR_FLAGS,
+ .addr_flags = PS8751_I2C_ADDR1_FLAGS,
},
- .drv = &anx7447_tcpm_drv,
+ .drv = &ps8xxx_tcpm_drv,
.flags = TCPC_FLAGS_TCPCI_REV2_0,
},
};
@@ -190,8 +190,8 @@ const struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_MAX_COUNT] = {
{
.usb_port = 1,
.i2c_port = I2C_PORT_SUB_USB_C1,
- .i2c_addr_flags = AN7447_TCPC0_I2C_ADDR_FLAGS,
- .driver = &anx7447_usb_mux_driver,
+ .i2c_addr_flags = PS8751_I2C_ADDR1_FLAGS,
+ .driver = &tcpci_tcpm_usb_mux_driver,
.next_mux = &usbc1_retimer,
},
};
diff --git a/board/drawcia/board.h b/board/drawcia/board.h
index a1d59b0fd6..95d7073ff9 100644
--- a/board/drawcia/board.h
+++ b/board/drawcia/board.h
@@ -60,7 +60,7 @@
/* TCPC */
#define CONFIG_USB_PD_PORT_MAX_COUNT 2
#define CONFIG_USB_PD_TCPM_ITE_ON_CHIP /* C0: ITE EC TCPC */
-#define CONFIG_USB_PD_TCPM_ANX7447 /* C1: ANX TCPC + Mux */
+#define CONFIG_USB_PD_TCPM_PS8705 /* C1: PS8705 TCPC*/
#define CONFIG_USB_PD_ITE_ACTIVE_PORT_COUNT 1
/* Thermistors */