summaryrefslogtreecommitdiff
path: root/board/freescale/ls1043aqds
diff options
context:
space:
mode:
authorWenbin Song <wenbin.song@nxp.com>2016-03-09 13:38:24 +0800
committerYork Sun <york.sun@nxp.com>2016-03-21 12:42:15 -0700
commitec44289db5c340872bdc76dfcea50bb9b6c56d4d (patch)
tree0575d6261299deb0668983abd053d4ded6f53d39 /board/freescale/ls1043aqds
parent1be8d10be42441d720076c23a2eb66a1323dbbc4 (diff)
downloadu-boot-imx-ec44289db5c340872bdc76dfcea50bb9b6c56d4d.zip
u-boot-imx-ec44289db5c340872bdc76dfcea50bb9b6c56d4d.tar.gz
u-boot-imx-ec44289db5c340872bdc76dfcea50bb9b6c56d4d.tar.bz2
armv8/ls1043aqds: Return i2c mux to default chennel
Return i2c mux to the default channel after accessing retimer. Signed-off-by: Wenbin Song <wenbin.song@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'board/freescale/ls1043aqds')
-rw-r--r--board/freescale/ls1043aqds/ls1043aqds.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/board/freescale/ls1043aqds/ls1043aqds.c b/board/freescale/ls1043aqds/ls1043aqds.c
index a72fe52..fba6b88 100644
--- a/board/freescale/ls1043aqds/ls1043aqds.c
+++ b/board/freescale/ls1043aqds/ls1043aqds.c
@@ -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)