summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2018-11-05 18:15:54 -0800
committerYe Li <ye.li@nxp.com>2018-11-06 19:33:20 -0800
commit9a897099ed6ecfe33006210565cabc48e531852a (patch)
tree9f33e0a8978e927c64fc5298b01dd8de9d54a747 /board
parentd86096accb1619e57e09309403b4d982a8493e59 (diff)
MLK-20257 imx8qxp_arm2: Fix NAND boot reset issue
The power domain driver is not ready when running board_early_init_f, but we call it imx8qxp_gpmi_nand_initialize. so this cause u-boot reset in early stage. Signed-off-by: Ye Li <ye.li@nxp.com> Tested-by: Han Xu <han.xu@nxp.com>
Diffstat (limited to 'board')
-rw-r--r--board/freescale/imx8qxp_arm2/imx8qxp_arm2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/freescale/imx8qxp_arm2/imx8qxp_arm2.c b/board/freescale/imx8qxp_arm2/imx8qxp_arm2.c
index f162b37646..39be56f262 100644
--- a/board/freescale/imx8qxp_arm2/imx8qxp_arm2.c
+++ b/board/freescale/imx8qxp_arm2/imx8qxp_arm2.c
@@ -164,9 +164,11 @@ int board_early_init_f(void)
setup_iomux_uart();
+#ifdef CONFIG_SPL_BUILD
#ifdef CONFIG_NAND_MXS
imx8qxp_gpmi_nand_initialize();
#endif
+#endif
return 0;
}
@@ -609,6 +611,10 @@ int board_init(void)
setup_fec(CONFIG_FEC_ENET_DEV);
#endif
+#ifdef CONFIG_NAND_MXS
+ imx8qxp_gpmi_nand_initialize();
+#endif
+
return 0;
}