summaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
authorQianyu Gong <qianyu.gong@nxp.com>2016-07-21 12:39:27 +0800
committerYork Sun <york.sun@nxp.com>2016-07-26 09:03:50 -0700
commit8401c7103d73b4010df95bf8bc79a60f378f1e50 (patch)
treea3da529a03786bbb1ac2076aa214edef7aff258a /board/freescale
parentdbe18f16d852216a45f632f0d3cf41f12b55d1ec (diff)
downloadu-boot-imx-8401c7103d73b4010df95bf8bc79a60f378f1e50.zip
u-boot-imx-8401c7103d73b4010df95bf8bc79a60f378f1e50.tar.gz
u-boot-imx-8401c7103d73b4010df95bf8bc79a60f378f1e50.tar.bz2
armv8: ls1043aqds: add IFC fixup in case QSPI is enabled
QSPI and IFC are pin-multiplexed on LS1043AQDS board. If QSPI is enabled, IFC would not be initialized correctly. So disable the IFC node for Linux. Signed-off-by: Gong Qianyu <Qianyu.Gong@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'board/freescale')
-rw-r--r--board/freescale/ls1043aqds/ls1043aqds.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/board/freescale/ls1043aqds/ls1043aqds.c b/board/freescale/ls1043aqds/ls1043aqds.c
index b7e9c21..941dfbc 100644
--- a/board/freescale/ls1043aqds/ls1043aqds.c
+++ b/board/freescale/ls1043aqds/ls1043aqds.c
@@ -327,6 +327,7 @@ int ft_board_setup(void *blob, bd_t *bd)
{
u64 base[CONFIG_NR_DRAM_BANKS];
u64 size[CONFIG_NR_DRAM_BANKS];
+ u8 reg;
/* fixup DT for the two DDR banks */
base[0] = gd->bd->bi_dram[0].start;
@@ -341,6 +342,15 @@ int ft_board_setup(void *blob, bd_t *bd)
fdt_fixup_fman_ethernet(blob);
fdt_fixup_board_enet(blob);
#endif
+
+ reg = QIXIS_READ(brdcfg[0]);
+ reg = (reg & QIXIS_LBMAP_MASK) >> QIXIS_LBMAP_SHIFT;
+
+ /* Disable IFC if QSPI is enabled */
+ if (reg == 0xF)
+ do_fixup_by_compat(blob, "fsl,ifc",
+ "status", "disabled", 8 + 1, 1);
+
return 0;
}
#endif