summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJi Luo <ji.luo@nxp.com>2018-09-30 15:24:09 +0800
committerYe Li <ye.li@nxp.com>2018-10-10 02:00:11 -0700
commitbf3b7492ab1e9f9d901d783ef361845bd41199ec (patch)
treed9cdf2c22b467f9a526793e17cf3db048e99fc43
parent0b19c665d5fe6a19f928f79d888562f84274c42d (diff)
MA-12973 [AUTO] Skip serial init in board_init_f
Serial init in board_init_f will cost much time, skip it here because the serial will be initialized again in board_init_r and it's more faster (after cache is enabled). We will miss some logs before the serial is ready but it's ok for Android Auto. This commit will save about 190ms on imx8qm. Test: boot ok for both imx8qm and imx8qxp. Change-Id: If6efdc19794aecda862f22b6fec7f7aba2005766 Signed-off-by: Ji Luo <ji.luo@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com> (cherry picked from commit b8296e64d2af14ec231f308a0318b0567c07e545)
-rw-r--r--common/board_f.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/board_f.c b/common/board_f.c
index c6bc53e1bf..cfd9de0e9f 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -783,7 +783,9 @@ static const init_fnc_t init_sequence_f[] = {
#endif
env_init, /* initialize environment */
init_baud_rate, /* initialze baudrate settings */
+#ifndef CONFIG_ANDROID_AUTO_SUPPORT
serial_init, /* serial communications setup */
+#endif
console_init_f, /* stage 1 init of console */
display_options, /* say that we are here */
display_text_info, /* show debugging info if required */