ipq5332: TINY NOR: remove common unused functions

Change-Id: Idc970e1a87c5aad7af5c8fc6ac8da760f2e8debd
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
This commit is contained in:
Gokul Sriram Palanisamy 2022-07-21 18:59:31 +05:30
parent 5cdef6d524
commit aca6ac0e00
7 changed files with 27 additions and 1 deletions

View file

@ -137,6 +137,7 @@ int do_run(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
#endif
#if CONFIG_IS_ENABLED(OF_CONTROL)
#ifndef CONFIG_REDUCE_FOOTPRINT
bool cli_process_fdt(const char **cmdp)
{
/* Allow the fdt to override the boot command */
@ -197,6 +198,7 @@ err:
*/
hang();
}
#endif
#endif /* CONFIG_IS_ENABLED(OF_CONTROL) */
void cli_loop(void)

View file

@ -138,6 +138,7 @@ int do_bootm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
BOOTM_STATE_OS_GO, &images, 1);
}
#ifndef CONFIG_REDUCE_FOOTPRINT
int bootm_maybe_autostart(cmd_tbl_t *cmdtp, const char *cmd)
{
const char *ep = getenv("autostart");
@ -152,6 +153,7 @@ int bootm_maybe_autostart(cmd_tbl_t *cmdtp, const char *cmd)
return 0;
}
#endif
#ifdef CONFIG_SYS_LONGHELP
static char bootm_help_text[] =

View file

@ -127,6 +127,10 @@ int common_diskboot(cmd_tbl_t *cmdtp, const char *intf, int argc,
/* Loading ok, update default load address */
load_addr = addr;
#ifndef CONFIG_REDUCE_FOOTPRINT
return bootm_maybe_autostart(cmdtp, argv[0]);
#else
return 0;
#endif
}
#endif

View file

@ -742,7 +742,11 @@ int do_fdcboot (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
/* Loading ok, update default load address */
load_addr = addr;
#ifndef CONFIG_REDUCE_FOOTPRINT
return bootm_maybe_autostart(cmdtp, argv[0]);
#else
return 0;
#endif
}
U_BOOT_CMD(

View file

@ -903,7 +903,11 @@ static int nand_load_image(cmd_tbl_t *cmdtp, nand_info_t *nand,
load_addr = addr;
#ifndef CONFIG_REDUCE_FOOTPRINT
return bootm_maybe_autostart(cmdtp, cmd);
#else
return 0;
#endif
}
static int do_nandboot(cmd_tbl_t *cmdtp, int flag, int argc,

View file

@ -250,7 +250,9 @@ static int netboot_common(enum proto_t proto, cmd_tbl_t *cmdtp, int argc,
bootstage_mark(BOOTSTAGE_ID_NET_LOADED);
#ifndef CONFIG_REDUCE_FOOTPRINT
rcode = bootm_maybe_autostart(cmdtp, argv[0]);
#endif
if (rcode == CMD_RET_SUCCESS)
bootstage_mark(BOOTSTAGE_ID_NET_DONE);

View file

@ -20,6 +20,7 @@ DECLARE_GLOBAL_DATA_PTR;
*/
__weak void show_boot_progress(int val) {}
#ifndef CONFIG_REDUCE_FOOTPRINT
static void modem_init(void)
{
#ifdef CONFIG_MODEM_SUPPORT
@ -52,11 +53,12 @@ static void run_preboot_environment_command(void)
}
#endif /* CONFIG_PREBOOT */
}
#endif
/* We come here after U-Boot is initialised and ready to process commands */
void main_loop(void)
{
const char *s;
const char *s = NULL;
bootstage_mark_name(BOOTSTAGE_ID_MAIN_LOOP, "main_loop");
@ -66,22 +68,28 @@ void main_loop(void)
puts("upgraded by the late 2014 may break or be removed.\n");
#endif
#ifndef CONFIG_REDUCE_FOOTPRINT
modem_init();
#ifdef CONFIG_VERSION_VARIABLE
setenv("ver", version_string); /* set version variable */
#endif /* CONFIG_VERSION_VARIABLE */
#endif
cli_init();
#ifndef CONFIG_REDUCE_FOOTPRINT
run_preboot_environment_command();
#endif
#if defined(CONFIG_UPDATE_TFTP)
update_tftp(0UL, NULL, NULL);
#endif /* CONFIG_UPDATE_TFTP */
s = bootdelay_process();
#ifndef CONFIG_REDUCE_FOOTPRINT
if (cli_process_fdt(&s))
cli_secure_boot_cmd(s);
#endif
autoboot_command(s);