Skip to content
Snippets Groups Projects
Commit 2866903b authored by Simon Glass's avatar Simon Glass Committed by Albert ARIBAUD
Browse files

arm: Check for valid FDT after console is up


When using CONFIG_OF_CONTROL, add a check that we have a valid FDT
and panic() if not. This must be done after the console is ready.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Signed-off-by: default avatarTom Warren <twarren@nvidia.com>
parent 9a263e55
No related branches found
No related tags found
No related merge requests found
...@@ -293,6 +293,14 @@ void board_init_f(ulong bootflag) ...@@ -293,6 +293,14 @@ void board_init_f(ulong bootflag)
} }
} }
#ifdef CONFIG_OF_CONTROL
/* For now, put this check after the console is ready */
if (fdtdec_prepare_fdt()) {
panic("** CONFIG_OF_CONTROL defined but no FDT - please see "
"doc/README.fdt-control");
}
#endif
debug("monitor len: %08lX\n", gd->mon_len); debug("monitor len: %08lX\n", gd->mon_len);
/* /*
* Ram is setup, size stored in gd !! * Ram is setup, size stored in gd !!
......
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