Skip to content
Snippets Groups Projects
Commit 3b73459e authored by Gabe Black's avatar Gabe Black Committed by Gerald Van Baren
Browse files

fdt: Tell the FDT library where the device tree is


This change adds a call to set_working_fdt_addr near the end of u-boot
initialization which tells the fdt command/library where the device tree is.
This makes it possible to use the fdt command to look at the active device tree
since otherwise there would be no way to know what address it was at to set
things up manually.

Signed-off-by: default avatarGabe Black <gabeblack@google.com>
Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 224b72e6
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,10 @@
#include <fdtdec.h>
#endif
#ifdef CONFIG_OF_LIBFDT
#include <fdt_support.h>
#endif /* CONFIG_OF_LIBFDT */
#include <post.h>
#include <linux/ctype.h>
#include <menu.h>
......@@ -418,6 +422,10 @@ 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.
Finish editing this message first!
Please register or to comment