summaryrefslogtreecommitdiff
path: root/board/redrix
diff options
context:
space:
mode:
Diffstat (limited to 'board/redrix')
-rw-r--r--board/redrix/usbc_config.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/board/redrix/usbc_config.c b/board/redrix/usbc_config.c
index 73a7b402cc..00b6589a46 100644
--- a/board/redrix/usbc_config.c
+++ b/board/redrix/usbc_config.c
@@ -134,13 +134,13 @@ struct ioexpander_config_t ioex_config[] = {
.i2c_host_port = I2C_PORT_USB_C0_TCPC,
.i2c_addr_flags = NCT38XX_I2C_ADDR1_1_FLAGS,
.drv = &nct38xx_ioexpander_drv,
- .flags = IOEX_FLAGS_DISABLED,
+ .flags = IOEX_FLAGS_DEFAULT_INIT_DISABLED,
},
[IOEX_C1_NCT38XX] = {
.i2c_host_port = I2C_PORT_USB_C1_TCPC,
.i2c_addr_flags = NCT38XX_I2C_ADDR1_4_FLAGS,
.drv = &nct38xx_ioexpander_drv,
- .flags = IOEX_FLAGS_DISABLED,
+ .flags = IOEX_FLAGS_DEFAULT_INIT_DISABLED,
},
};
BUILD_ASSERT(ARRAY_SIZE(ioex_config) == CONFIG_IO_EXPANDER_PORT_COUNT);
@@ -211,10 +211,8 @@ static void board_tcpc_init(void)
if (!system_jumped_late()) {
board_reset_pd_mcu();
- for (i = 0; i < CONFIG_IO_EXPANDER_PORT_COUNT; ++i) {
- ioex_config[i].flags &= ~IOEX_FLAGS_DISABLED;
+ for (i = 0; i < CONFIG_IO_EXPANDER_PORT_COUNT; ++i)
ioex_init(i);
- }
}
/* Enable PPC interrupts. */