summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7d85591)
raw | patch | inline | side by side (parent: 7d85591)
author | Barak Wasserstrom <wbarak@gmail.com> | |
Wed, 27 Feb 2013 08:48:41 +0000 (08:48 +0000) | ||
committer | Tom Rini <trini@ti.com> | |
Tue, 12 Mar 2013 16:43:31 +0000 (12:43 -0400) |
When using $fdtaddr in $bootcmd and $bootcmd is automatically called,
$fdtaddr is yet not defined.
Signed-off-by: Barak Wasserstrom <wbarak@gmail.com>
$fdtaddr is yet not defined.
Signed-off-by: Barak Wasserstrom <wbarak@gmail.com>
common/main.c | patch | blob | history |
diff --git a/common/main.c b/common/main.c
index e2d2e09bf9f750bc278fa8d5f452c63ccc6ad1e2..b0472da8a8182815541d4eedb04e629bd3c048df 100644 (file)
--- a/common/main.c
+++ b/common/main.c
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++;
#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
*/