summaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
authorJi Luo <ji.luo@nxp.com>2020-09-21 16:22:21 +0800
committerJi Luo <ji.luo@nxp.com>2020-09-22 17:01:14 +0800
commit2c2363e47b858bd178c44869328eca211b2c3f62 (patch)
treef1f993b2ac76e087a58af9665b4633587e8f24af /board/freescale
parent601eda60064b5c1e27daadf7b963090f0381d388 (diff)
MA-17916-1 Clean Up: Guard codes with correct configs
This commit does some clean-up to guard the codes/configs with correct configs, so we can enable/disable the feature without modifying the codes. Test: builds and boots on imx8qm. Signed-off-by: Ji Luo <ji.luo@nxp.com> Change-Id: Ic4cf4d9f47bd5a4317b2621a5378cb4b192e52fb
Diffstat (limited to 'board/freescale')
-rw-r--r--board/freescale/imx8qm_mek/spl.c3
-rw-r--r--board/freescale/imx8qxp_mek/spl.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/board/freescale/imx8qm_mek/spl.c b/board/freescale/imx8qm_mek/spl.c
index 13ef4ca900..715772b0d1 100644
--- a/board/freescale/imx8qm_mek/spl.c
+++ b/board/freescale/imx8qm_mek/spl.c
@@ -31,9 +31,12 @@ void spl_board_init(void)
timer_init();
+#ifdef CONFIG_SPL_SERIAL_SUPPORT
preloader_console_init();
puts("Normal Boot\n");
+#endif
+
}
void spl_board_prepare_for_boot(void)
diff --git a/board/freescale/imx8qxp_mek/spl.c b/board/freescale/imx8qxp_mek/spl.c
index 13ef4ca900..ffd19bcb93 100644
--- a/board/freescale/imx8qxp_mek/spl.c
+++ b/board/freescale/imx8qxp_mek/spl.c
@@ -31,9 +31,11 @@ void spl_board_init(void)
timer_init();
+#ifdef CONFIG_SPL_SERIAL_SUPPORT
preloader_console_init();
puts("Normal Boot\n");
+#endif
}
void spl_board_prepare_for_boot(void)