mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-27 23:20:26 +09:00
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: Barak Wasserstrom <wbarak@gmail.com>
This commit is contained in:
parent
7d85591dda
commit
fe492cee35
@ -378,6 +378,10 @@ void main_loop (void)
|
|||||||
|
|
||||||
bootstage_mark_name(BOOTSTAGE_ID_MAIN_LOOP, "main_loop");
|
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
|
#ifdef CONFIG_BOOTCOUNT_LIMIT
|
||||||
bootcount = bootcount_load();
|
bootcount = bootcount_load();
|
||||||
bootcount++;
|
bootcount++;
|
||||||
@ -500,10 +504,6 @@ void main_loop (void)
|
|||||||
#endif /* CONFIG_MENUKEY */
|
#endif /* CONFIG_MENUKEY */
|
||||||
#endif /* CONFIG_BOOTDELAY */
|
#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
|
* Main Loop for Monitor Command Processing
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user