Commit 30f3e270be00930d8bc8289ce5113f9dfc6a2bcd

Authored by Ji Luo
Committed by Ye Li
1 parent b658d80e36

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 690a14ed2fc64328b417a9de448f4a18cc653698)

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

... ... @@ -910,7 +910,9 @@
910 910 #endif
911 911 env_init, /* initialize environment */
912 912 init_baud_rate, /* initialze baudrate settings */
  913 +#ifndef CONFIG_ANDROID_AUTO_SUPPORT
913 914 serial_init, /* serial communications setup */
  915 +#endif
914 916 console_init_f, /* stage 1 init of console */
915 917 display_options, /* say that we are here */
916 918 display_text_info, /* show debugging info if required */