Skip to content
Snippets Groups Projects
Commit fe492cee authored by Barak Wasserstrom's avatar Barak Wasserstrom Committed by Tom Rini
Browse files

common/main: move set_working_fdt_addr to enable usage of $fdtaddr


When using $fdtaddr in $bootcmd and $bootcmd is automatically called,
$fdtaddr is yet not defined.

Signed-off-by: default avatarBarak Wasserstrom <wbarak@gmail.com>
parent 7d85591d
No related branches found
No related tags found
No related merge requests found
......@@ -378,6 +378,10 @@ void main_loop (void)
bootstage_mark_name(BOOTSTAGE_ID_MAIN_LOOP, "main_loop");
#if defined CONFIG_OF_CONTROL
set_working_fdt_addr((void *)gd->fdt_blob);
#endif /* CONFIG_OF_CONTROL */
#ifdef CONFIG_BOOTCOUNT_LIMIT
bootcount = bootcount_load();
bootcount++;
......@@ -500,10 +504,6 @@ void main_loop (void)
#endif /* CONFIG_MENUKEY */
#endif /* CONFIG_BOOTDELAY */
#if defined CONFIG_OF_CONTROL
set_working_fdt_addr((void *)gd->fdt_blob);
#endif /* CONFIG_OF_CONTROL */
/*
* Main Loop for Monitor Command Processing
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment