summaryrefslogtreecommitdiff
path: root/board/nautilus/board.c
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2018-03-27 13:46:19 -0600
committerchrome-bot <chrome-bot@chromium.org>2018-03-28 16:40:40 -0700
commitffa405476096c5c1905f7f9bf9235043ad8f0257 (patch)
tree852aa4edbcc3f59c886225afd029d058dc15fa6f /board/nautilus/board.c
parentfbc40d6fcecb8a93ec91d468bc89f35c07d48f99 (diff)
downloadchrome-ec-ffa405476096c5c1905f7f9bf9235043ad8f0257.tar.gz
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 <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/982561 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'board/nautilus/board.c')
-rw-r--r--board/nautilus/board.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/board/nautilus/board.c b/board/nautilus/board.c
index 5f0c75514e..b9bffe939a 100644
--- a/board/nautilus/board.c
+++ b/board/nautilus/board.c
@@ -167,8 +167,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] = {
- {NPCX_I2C_PORT0_0, 0x16, &ps8xxx_tcpm_drv, TCPC_ALERT_ACTIVE_LOW},
- {NPCX_I2C_PORT0_1, 0x16, &ps8xxx_tcpm_drv, TCPC_ALERT_ACTIVE_LOW},
+ {
+ .i2c_host_port = NPCX_I2C_PORT0_0,
+ .i2c_slave_addr = PS8751_I2C_ADDR1,
+ .drv = &ps8xxx_tcpm_drv,
+ .pol = TCPC_ALERT_ACTIVE_LOW,
+ },
+ {
+ .i2c_host_port = NPCX_I2C_PORT0_1,
+ .i2c_slave_addr = PS8751_I2C_ADDR1,
+ .drv = &ps8xxx_tcpm_drv,
+ .pol = TCPC_ALERT_ACTIVE_LOW,
+ },
};
struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_COUNT] = {