board: fsl: lx2160a: fix SDHC1_DAT4 signal routing
PATCH 1/1 board: fsl: lx2160a: fix SDHC1_DAT4 signal routing
The SDHC1_DAT4 signal could be routes to SDHC1_VS or SDHC1 adapter slot for SDHC1 usage. When SDHC1 is selected in RCW, do not force to route it to SDHC1 adapter slot if find it has already been configued for SDHC1_VS.
--- board/freescale/lx2160a/lx2160a.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
board/freescale/lx2160a/lx2160a.c +9 -3
@@ -469,10 +469,16 @@ int config_board_mux(void) reg11 =SET_CFG_MUX3_SDHC1_SPI (reg11,0x01 );QIXIS_WRITE (brdcfg[11 ], reg11); }else { -/* Routes {SDHC1_DAT4} to SDHC1 adapter slot */ +/* +* If {SDHC1_DAT4} has been configured to route to SDHC1_VS, +* do not change it. +* Otherwise route {SDHC1_DAT4} to SDHC1 adapter slot. +*/ reg11 =QIXIS_READ (brdcfg[11 ]); - reg11 =SET_CFG_MUX2_SDHC1_SPI (reg11,0x00 ); -QIXIS_WRITE (brdcfg[11 ], reg11); +if ((reg11 &0x30 ) !=0x30 ) { + reg11 =SET_CFG_MUX2_SDHC1_SPI (reg11,0x00 ); +QIXIS_WRITE (brdcfg[11 ], reg11); + }/* - Routes {SDHC1_DAT5, SDHC1_DAT6} to SDHC1 adapter slot. * {SDHC1_DAT7, SDHC1_DS } to SDHC1 adapter slot.
Signature · 1 line
2.7.4
PATCH 1/1 board: fsl: lx2160a: fix SDHC1_DAT4 signal routing
Quoted 7 lines
-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Yangbo Lu
Sent: Thursday, March 19, 2020 12:49 PM
To: u-boot at lists.denx.de; Priyanka Jain <[email protected]>
Cc: Y.b. Lu <[email protected]>
Subject: [PATCH] board: fsl: lx2160a: fixSDHC1_DAT4signal routing
Quoted 6 lines
The
SDHC1_DAT4signal could be routes toSDHC1_VSor SDHC1 adapter slot for SDHC1 usage. When SDHC1 is selected in RCW, do not force to route it to SDHC1 adapter slot if find it has already been configued forSDHC1_VS.Signed-off-by Yangbo Lu <[email protected]>---
Applied to u-boot-fsl-qoriq. Waiting upstream
Thanks
Priyanka