summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJi Luo <ji.luo@nxp.com>2018-09-30 15:24:09 +0800
committerJi Luo <ji.luo@nxp.com>2018-10-08 10:01:06 +0800
commitb8296e64d2af14ec231f308a0318b0567c07e545 (patch)
tree2b324c24c9ad1cb7cb0be7c4dd84432ac815784d /common
parent3fba1c1a76cadfe0177e61a85eac3da10ee086e0 (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>
Diffstat (limited to 'common')
-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 */