From ffa405476096c5c1905f7f9bf9235043ad8f0257 Mon Sep 17 00:00:00 2001 From: Jett Rink Date: Tue, 27 Mar 2018 13:46:19 -0600 Subject: usbc: add default I2C addresses Add hard coded I2C addresses as defined by datasheet. BRANCH=none BUG=none TEST=none Change-Id: Ia69cc4da7474a9c1f8a994d33db88e0a405f02b7 Signed-off-by: Jett Rink Reviewed-on: https://chromium-review.googlesource.com/982561 Reviewed-by: Daisuke Nojiri --- board/eve/board.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'board/eve/board.c') diff --git a/board/eve/board.c b/board/eve/board.c index 820fac31fe..1ab87d7d9d 100644 --- a/board/eve/board.c +++ b/board/eve/board.c @@ -210,8 +210,18 @@ const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports); /* TCPC mux configuration */ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_COUNT] = { - {I2C_PORT_TCPC0, 0x50, &anx74xx_tcpm_drv, TCPC_ALERT_ACTIVE_LOW}, - {I2C_PORT_TCPC1, 0x50, &anx74xx_tcpm_drv, TCPC_ALERT_ACTIVE_LOW}, + { + .i2c_host_port = I2C_PORT_TCPC0, + .i2c_slave_addr = ANX74XX_I2C_ADDR1, + .drv = &anx74xx_tcpm_drv, + .pol = TCPC_ALERT_ACTIVE_LOW, + }, + { + .i2c_host_port = I2C_PORT_TCPC1, + .i2c_slave_addr = ANX74XX_I2C_ADDR1, + .drv = &anx74xx_tcpm_drv, + .pol = TCPC_ALERT_ACTIVE_LOW, + }, }; struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_COUNT] = { -- cgit v1.2.1