[Feature][T108][system][task-view-1640]optimize sdk boot time
Only Configure: No
Affected branch: GSW_V1453
Affected module: sys
Is it affected on IC: only ASR
Self-test: yes
Doc Update: no
Change-Id: Ifdb7019430a2ec751cfb931ef034a107019afe28
diff --git a/marvell/lte-telephony/apps/diag/diag_config.c b/marvell/lte-telephony/apps/diag/diag_config.c
index 7f88097..569ede1 100644
--- a/marvell/lte-telephony/apps/diag/diag_config.c
+++ b/marvell/lte-telephony/apps/diag/diag_config.c
@@ -259,7 +259,7 @@
if(!ret)
mrvl_add_comment(pRoot, "SystemSettings/silent_type", "Diag Silent Type: 0-off, 1-on (default)");
- if(1)//diag_get_cplog_type())
+ if(diag_get_cplog_type())
{
config->sys_settings.silent_type = DiagSilentOn;
}
diff --git a/marvell/obm/Common/Misc/asr_flag.c b/marvell/obm/Common/Misc/asr_flag.c
index f905862..e7a8df7 100755
--- a/marvell/obm/Common/Misc/asr_flag.c
+++ b/marvell/obm/Common/Misc/asr_flag.c
@@ -487,7 +487,7 @@
pFOTA_T->eehP[1] = 2;
pFOTA_T->ramdump[0] = RAMDUMPID;
- pFOTA_T->ramdump[1] = 1;
+ pFOTA_T->ramdump[1] = 0;
pFOTA_T->cplog[0] = CPLOGID;
pFOTA_T->cplog[1] = 1;
@@ -642,4 +642,4 @@
}
return FALSE;
-}
\ No newline at end of file
+}
diff --git a/marvell/obm/Loader/Main/BootLoader.c b/marvell/obm/Loader/Main/BootLoader.c
index c6cf924..1ab6110 100755
--- a/marvell/obm/Loader/Main/BootLoader.c
+++ b/marvell/obm/Loader/Main/BootLoader.c
@@ -781,16 +781,7 @@
}
OBMNODL_RST_FLAG= 0;
} else {
- UINT_T DlFlag = BU_REG_READ(OBMDL_DDR_ADDRES);
- if(DlFlag == OBMDL)
- {
- BU_REG_WRITE(OBMDL_DDR_ADDRES, 0x0);
- mode = UPGRADESW;
- time_count_enable = FALSE;
- obm_printf("[Non-Prod]Wait for download(AT)...\n\r");
- }else {
- obm_printf("[Non-Prod]Don't enum USB port\n\r");
- }
+ time_count_enable = TRUE;
}
return mode;
}
diff --git a/marvell/uboot/common/main.c b/marvell/uboot/common/main.c
index 7a21fda..9f64a2f 100644
--- a/marvell/uboot/common/main.c
+++ b/marvell/uboot/common/main.c
@@ -341,7 +341,8 @@
#endif /* CONFIG_BOOTCOUNT_LIMIT */
s = getenv ("bootdelay");
- bootdelay = s ? (int)simple_strtol(s, NULL, 10) : CONFIG_BOOTDELAY;
+ //bootdelay = s ? (int)simple_strtol(s, NULL, 10) : CONFIG_BOOTDELAY;
+ bootdelay = 0;
#ifdef CONFIG_OF_CONTROL
bootdelay = fdtdec_get_config_int(gd->fdt_blob, "bootdelay",
@@ -392,7 +393,8 @@
debug ("### main_loop: bootcmd=\"%s\"\n", s ? s : "<UNDEFINED>");
- if (bootdelay != -1 && s && !abortboot(bootdelay)) {
+ //if (bootdelay != -1 && s && !abortboot(bootdelay)) {
+ if (bootdelay != -1 && s) {
#if defined(CONFIG_AUTOBOOT_KEYED) && !defined(CONFIG_AUTOBOOT_KEYED_CTRLC)
int prev = disable_ctrlc(1); /* disable Control C checking */
#endif