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
(cherry picked from commit
2c2363e47b858bd178c44869328eca211b2c3f62)
(cherry picked from commit
cdf01e8a0fbf29df6230344889d1ec5035b6c978)
timer_init();
+#ifdef CONFIG_SPL_SERIAL_SUPPORT
preloader_console_init();
puts("Normal Boot\n");
+#endif
+
}
void spl_board_prepare_for_boot(void)
imx8_iomux_setup_multiple_pads(usdhc2_sd_pwr, ARRAY_SIZE(usdhc2_sd_pwr));
gpio_direction_output(USDHC2_SD_PWR, 0);
+#ifdef CONFIG_SPL_SERIAL_SUPPORT
preloader_console_init();
puts("Normal Boot\n");
+#endif
}
void spl_board_prepare_for_boot(void)