2023: add profile boot time [5/5]

PD#SWPL-179522

Problem:
need profile boot time

Solution:
add Macro CONFIG_MEASUREMENT_BOOT_TIME for enable profile time
Control whether to print detailed time through env "profile"

Verify:
s7_bh201 s7d_bm201 s6_bq208

Change-Id: Idfe6889ad5ca679b9a88f38513ff926672289405
Signed-off-by: Meng yu <meng.yu@amlogic.com>
diff --git a/common/main.c b/common/main.c
index 166c60d..c889657 100644
--- a/common/main.c
+++ b/common/main.c
@@ -18,6 +18,7 @@
 #include <version_string.h>
 #include <efi_loader.h>
 #include <version.h>
+#include <amlogic/aml_profile.h>
 
 static void run_preboot_environment_command(void)
 {
@@ -30,7 +31,9 @@
 		if (IS_ENABLED(CONFIG_AUTOBOOT_KEYED))
 			prev = disable_ctrlc(1); /* disable Ctrl-C checking */
 
+		PUSH_TIME_TE(__func__, BL33_PREBOOT_s);
 		run_command_list(p, -1, 0);
+		PUSH_TIME_TE(__func__, BL33_PREBOOT_e);
 
 		if (IS_ENABLED(CONFIG_AUTOBOOT_KEYED))
 			disable_ctrlc(prev);	/* restore Ctrl-C checking */