summaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
authorJi Luo <ji.luo@nxp.com>2020-08-27 14:07:12 +0800
committerJi Luo <ji.luo@nxp.com>2020-08-31 18:16:24 +0800
commitd25c0c7b9de22abd6c326975199c86c943e742cf (patch)
treee15a0089c17e5169bf2c42a6e2779cafb4304473 /board/freescale
parent65571cbbea2d59694e6bc45480fc52cae02790e9 (diff)
MA-17788 Boot time refine for automotive
Disable unused dts and configs for imx8q to reduce the boot time. The 'part_get_info_by_name' can be very time consuming as it will loop through all the GPT entries to find the matched partition, specify the number of 'misc' partition and use 'part_get_info' to load the partition info directly will save much time. With this patch, about 300ms can be save for imx8qm, about 350ms can be saved for imx8qxp. Test: boot tests. Signed-off-by: Ji Luo <ji.luo@nxp.com> Change-Id: I66bc7e002caea62754b670d0a30860a23a17ff61
Diffstat (limited to 'board/freescale')
-rw-r--r--board/freescale/imx8qm_mek/imx8qm_mek.c2
-rw-r--r--board/freescale/imx8qxp_mek/imx8qxp_mek.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/board/freescale/imx8qm_mek/imx8qm_mek.c b/board/freescale/imx8qm_mek/imx8qm_mek.c
index 38bf9fc1ce..2a7729cdab 100644
--- a/board/freescale/imx8qm_mek/imx8qm_mek.c
+++ b/board/freescale/imx8qm_mek/imx8qm_mek.c
@@ -443,7 +443,9 @@ int board_late_init(void)
char *fdt_file;
bool m4_boot;
+#ifndef CONFIG_ANDROID_AUTO_SUPPORT
build_info();
+#endif
#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
env_set("board_name", "MEK");
diff --git a/board/freescale/imx8qxp_mek/imx8qxp_mek.c b/board/freescale/imx8qxp_mek/imx8qxp_mek.c
index 268fb44702..d9c0359731 100644
--- a/board/freescale/imx8qxp_mek/imx8qxp_mek.c
+++ b/board/freescale/imx8qxp_mek/imx8qxp_mek.c
@@ -386,7 +386,9 @@ int board_late_init(void)
char *fdt_file;
bool m4_boot;
+#ifndef CONFIG_ANDROID_AUTO_SUPPORT
build_info();
+#endif
#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
env_set("board_name", "MEK");