Skip to content
Snippets Groups Projects
Commit ec44289d authored by Wenbin Song's avatar Wenbin Song Committed by York Sun
Browse files

armv8/ls1043aqds: Return i2c mux to default chennel


Return i2c mux to the default channel after accessing retimer.

Signed-off-by: default avatarWenbin Song <wenbin.song@nxp.com>
Reviewed-by: default avatarYork Sun <york.sun@nxp.com>
parent 1be8d10b
No related branches found
No related tags found
No related merge requests found
......@@ -170,8 +170,7 @@ void board_retimer_init(void)
u8 reg;
/* Retimer is connected to I2C1_CH7_CH5 */
reg = I2C_MUX_CH7;
i2c_write(I2C_MUX_PCA_ADDR_PRI, 0, 1, &reg, 1);
select_i2c_ch_pca9547(I2C_MUX_CH7);
reg = I2C_MUX_CH5;
i2c_write(I2C_MUX_PCA_ADDR_SEC, 0, 1, &reg, 1);
......@@ -219,6 +218,9 @@ void board_retimer_init(void)
i2c_write(I2C_RETIMER_ADDR, 0x63, 1, &reg, 1);
reg = 0xcd;
i2c_write(I2C_RETIMER_ADDR, 0x64, 1, &reg, 1);
/* Return the default channel */
select_i2c_ch_pca9547(I2C_MUX_CH_DEFAULT);
}
int board_early_init_f(void)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment