summaryrefslogtreecommitdiff
path: root/board/atlas/board.c
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2018-08-10 01:32:01 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-08-10 22:43:53 -0700
commit6990ea55076669d74c899d86a8fd76640016b7c1 (patch)
tree80e84c9e0955702ff1c01a4d11b496c21c9b6b5e /board/atlas/board.c
parent0e786a7cfe4e928bc87959a6674c6c583fc48bd0 (diff)
downloadchrome-ec-6990ea55076669d74c899d86a8fd76640016b7c1.tar.gz
atlas: fix order of LEDs to match ports
this updates the order in which LEDs are listed to match the order of the TCPCs. the charger and LED code use the same port index into the LED and TCPC tables, so we need to keep these tables in the same order. BUG=b:110505328 BRANCH=none TEST=ectool led right/left still controls the correct LED there is an implicit relationship between LEDs and USB-C ports. the ports and LEDs must be listed in the same order. Change-Id: I07c95cdd568f2d90643e1e502bd4698b334a95bf Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1170574 Commit-Ready: Caveh Jalali <caveh@google.com> Tested-by: Caveh Jalali <caveh@google.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/atlas/board.c')
-rw-r--r--board/atlas/board.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/atlas/board.c b/board/atlas/board.c
index 3724a04523..3861283a64 100644
--- a/board/atlas/board.c
+++ b/board/atlas/board.c
@@ -167,12 +167,14 @@ 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] = {
{
+ /* left port */
.i2c_host_port = I2C_PORT_TCPC0,
.i2c_slave_addr = I2C_ADDR_TCPC,
.drv = &ps8xxx_tcpm_drv,
.pol = TCPC_ALERT_ACTIVE_LOW
},
{
+ /* right port */
.i2c_host_port = I2C_PORT_TCPC1,
.i2c_slave_addr = I2C_ADDR_TCPC,
.drv = &ps8xxx_tcpm_drv,